From 01485d06baf0098c2f0ec3ac48ea49150e550de9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 3 Aug 2019 16:40:05 +0100 Subject: RISC OS: Core window: X scroll is positive, Y scroll is negative. --- frontends/riscos/corewindow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c index fd0e50a2d..a54435287 100644 --- a/frontends/riscos/corewindow.c +++ b/frontends/riscos/corewindow.c @@ -847,8 +847,8 @@ ro_cw_get_scroll(struct core_window *cw, int *x, int *y) return NSERROR_INVALID; } - *x = state.xscroll / 2; - *y = state.yscroll / 2; + *x = state.xscroll / 2; + *y = -state.yscroll / 2; return NSERROR_OK; } @@ -872,7 +872,7 @@ ro_cw_set_scroll(struct core_window *cw, int x, int y) return NSERROR_INVALID; } - state.xscroll = -x * 2; + state.xscroll = x * 2; state.yscroll = -y * 2; ro_cw_open(PTR_WIMP_OPEN(&state)); -- cgit v1.2.3