summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-08-03 11:24:51 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-08-03 11:24:51 +0100
commit20002193a715586b62240a603d975a2d523699af (patch)
tree6d5ddb790e1f40fc9b1eea51c3eeb06f1e736f42
parentae49c8bf67708268ec8e5cec54b067e014460801 (diff)
downloadnetsurf-tlsa/ro-cw-scroll.tar.gz
netsurf-tlsa/ro-cw-scroll.tar.bz2
RISC OS: Another attemt to get scroll visible working.tlsa/ro-cw-scroll
-rw-r--r--frontends/riscos/corewindow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c
index c234e67ed..ecd2df221 100644
--- a/frontends/riscos/corewindow.c
+++ b/frontends/riscos/corewindow.c
@@ -45,6 +45,7 @@
#include "riscos/window.h"
#include "riscos/toolbar.h"
#include "riscos/mouse.h"
+#include "riscos/wimputils.h"
#include "riscos/corewindow.h"
#ifndef wimp_KEY_END
@@ -845,8 +846,8 @@ ro_cw_scroll_visible(struct core_window *cw, const struct rect *r)
return;
}
- state.xscroll = rect->x0 * 2;
- state.yscroll = rect->y0 * 2;
+ state.xscroll = r->x0 * 2;
+ state.yscroll = r->y0 * 2;
ro_cw_open(PTR_WIMP_OPEN(&state));
}