summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-08-01 20:32:20 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-08-01 20:32:20 +0100
commit5545782a6c23b0df532567499671ceb5c035ebc0 (patch)
treef08b6818fad1c9b5a07fb56184c45b22a56b49c9
parent0761675f0e05fc2bb5f518b738e5ae41c53c9b07 (diff)
downloadnetsurf-tlsa/cleanup-scale.tar.gz
netsurf-tlsa/cleanup-scale.tar.bz2
GTK: Update for unscaled bw invalidate rectangle.tlsa/cleanup-scale
-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;
}