summaryrefslogtreecommitdiff
path: root/frontends/riscos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-01 21:48:12 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-01 22:34:13 +0100
commit955cf5f97b9a2d906a6052e0ad681f344afb9600 (patch)
tree4ad8a3b64d55ec21a3ba9f20f582b5a94183b3f7 /frontends/riscos
parent654840e8452696bcc23633ca857c3a1fa0155d1e (diff)
downloadnetsurf-955cf5f97b9a2d906a6052e0ad681f344afb9600.tar.gz
netsurf-955cf5f97b9a2d906a6052e0ad681f344afb9600.tar.bz2
RISCOS: change invalidate to cope with unscaled rectangles
Diffstat (limited to 'frontends/riscos')
-rw-r--r--frontends/riscos/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index e41f6096f..53a7b586a 100644
--- a/frontends/riscos/window.c
+++ b/frontends/riscos/window.c
@@ -4278,10 +4278,10 @@ ro_gui_window_invalidate_area(struct gui_window *g, const struct rect *rect)
return NSERROR_OK;
}
- x0 = floorf(rect->x0 * 2 * g->scale);
- y0 = -ceilf(rect->y1 * 2 * g->scale);
- x1 = ceilf(rect->x1 * 2 * g->scale) + 1;
- y1 = -floorf(rect->y0 * 2 * g->scale) + 1;
+ x0 = floorf(rect->x0 * 2 );
+ y0 = -ceilf(rect->y1 * 2 );
+ x1 = ceilf(rect->x1 * 2 ) + 1;
+ y1 = -floorf(rect->y0 * 2 ) + 1;
use_buffer =
(g->option.buffer_everything || g->option.buffer_animations);