diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 11:58:44 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 14:29:06 +0100 |
commit | d4c01894c21559cd4199c0f15b9e8b7bec4b692c (patch) | |
tree | 99a9dad1873b37a22ef344fd002484feefd93c70 /frontends/riscos/window.c | |
parent | 0ebfff259fa4ec6aaf5e97a213d5c65c24052e96 (diff) | |
download | netsurf-d4c01894c21559cd4199c0f15b9e8b7bec4b692c.tar.gz netsurf-d4c01894c21559cd4199c0f15b9e8b7bec4b692c.tar.bz2 |
change browser_window_get_features to use unscaled coordinates
Diffstat (limited to 'frontends/riscos/window.c')
-rw-r--r-- | frontends/riscos/window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c index 84029ef87..c4d32bd28 100644 --- a/frontends/riscos/window.c +++ b/frontends/riscos/window.c @@ -1154,8 +1154,8 @@ ro_gui_window_scroll_action(struct gui_window *g, if (pointer.w == g->window && ro_gui_window_to_window_pos(g, pointer.pos.x, pointer.pos.y, &pos)) handled = browser_window_scroll_at_point(g->bw, - pos.x/g->scale, - pos.y/g->scale, + pos.x, + pos.y, step_x, step_y); @@ -1251,7 +1251,7 @@ ro_gui_window_handle_local_keypress(struct gui_window *g, if (!ro_gui_window_to_window_pos(g, pointer.pos.x, pointer.pos.y, &pos)) return false; - browser_window_get_features(g->bw, pos.x/g->scale, pos.y/g->scale, &cont); + browser_window_get_features(g->bw, pos.x, pos.y, &cont); switch (c) { case IS_WIMP_KEY + wimp_KEY_F1: /* Help. */ @@ -2171,7 +2171,7 @@ ro_gui_window_menu_prepare(wimp_w w, if (ro_gui_window_to_window_pos(g, pointer->pos.x, pointer->pos.y, &pos)) { - browser_window_get_features(bw, pos.x/g->scale, pos.y/g->scale, &cont); + browser_window_get_features(bw, pos.x, pos.y, &cont); current_menu_main = cont.main; current_menu_object = cont.object; |