summaryrefslogtreecommitdiff
path: root/frontends/riscos/corewindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/riscos/corewindow.c')
-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));