summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-08-01 20:32:20 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-01 22:34:13 +0100
commit2943e9ae467050ce359cb40d45081d79e6128ac5 (patch)
treeb6633ccd863ffd785e3a7ae0cb54f395a2bc3d38 /frontends
parentde12be4e9ce1640ed047345a5f22757470f7c77d (diff)
downloadnetsurf-2943e9ae467050ce359cb40d45081d79e6128ac5.tar.gz
netsurf-2943e9ae467050ce359cb40d45081d79e6128ac5.tar.bz2
GTK: Update for unscaled bw invalidate rectangle.
Diffstat (limited to 'frontends')
-rw-r--r--frontends/gtk/window.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c
index 769d36fcf..0a2dac107 100644
--- a/frontends/gtk/window.c
+++ b/frontends/gtk/window.c
@@ -1011,7 +1011,6 @@ static nserror
nsgtk_window_invalidate_area(struct gui_window *g, const struct rect *rect)
{
int sx, sy;
- float scale;
if (rect == NULL) {
gtk_widget_queue_draw(GTK_WIDGET(g->layout));
@@ -1023,13 +1022,12 @@ nsgtk_window_invalidate_area(struct gui_window *g, const struct rect *rect)
}
gui_window_get_scroll(g, &sx, &sy);
- scale = browser_window_get_scale(g->bw);
gtk_widget_queue_draw_area(GTK_WIDGET(g->layout),
- rect->x0 * scale - sx,
- rect->y0 * scale - sy,
- (rect->x1 - rect->x0) * scale,
- (rect->y1 - rect->y0) * scale);
+ rect->x0 - sx,
+ rect->y0 - sy,
+ rect->x1 - rect->x0,
+ rect->y1 - rect->y0);
return NSERROR_OK;
}