summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-08-03 16:40:05 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-08-03 16:40:05 +0100
commit01485d06baf0098c2f0ec3ac48ea49150e550de9 (patch)
treed643e0306cf39312fe50a6c11af2804fa0384ffc
parent342b65fd76de0b26cda3fecf2140b547b5e11b2e (diff)
downloadnetsurf-01485d06baf0098c2f0ec3ac48ea49150e550de9.tar.gz
netsurf-01485d06baf0098c2f0ec3ac48ea49150e550de9.tar.bz2
RISC OS: Core window: X scroll is positive, Y scroll is negative.
-rw-r--r--frontends/riscos/corewindow.c6
1 files 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));