summaryrefslogtreecommitdiff
path: root/frontends/riscos
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-08-03 14:04:36 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-08-03 14:04:36 +0100
commit54daff0e979a17984d66b06db2adc292f55b7b14 (patch)
treef5d6763e94525d66fc9fee08ebd1cd35276e3c27 /frontends/riscos
parentf984873799b30f5bad45f58e456f6f5e8c384c16 (diff)
downloadnetsurf-54daff0e979a17984d66b06db2adc292f55b7b14.tar.gz
netsurf-54daff0e979a17984d66b06db2adc292f55b7b14.tar.bz2
RISC OS: y scroll is negative.
Diffstat (limited to 'frontends/riscos')
-rw-r--r--frontends/riscos/corewindow.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c
index ecd2df221..6adfb03e7 100644
--- a/frontends/riscos/corewindow.c
+++ b/frontends/riscos/corewindow.c
@@ -846,8 +846,12 @@ ro_cw_scroll_visible(struct core_window *cw, const struct rect *r)
return;
}
- state.xscroll = r->x0 * 2;
- state.yscroll = r->y0 * 2;
+ /* TODO:
+ * Scroll so the area is brought into view, not just the top left of
+ * the rectangle. See `nsgtk_cw_scroll_visible`.
+ */
+ state.xscroll = -r->x0 * 2;
+ state.yscroll = -r->y0 * 2;
ro_cw_open(PTR_WIMP_OPEN(&state));
}