diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-02 22:07:59 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 14:29:05 +0100 |
commit | 0a8ed41a1ad470bb62c908d0dc6272c1c541a1f2 (patch) | |
tree | 149a44db1bbea14e8fb4577ad53b01cfc472e527 /frontends/amiga/gui.c | |
parent | 182c4ddefe6c1cd050361febb344ccd8cd5d1c96 (diff) | |
download | netsurf-0a8ed41a1ad470bb62c908d0dc6272c1c541a1f2.tar.gz netsurf-0a8ed41a1ad470bb62c908d0dc6272c1c541a1f2.tar.bz2 |
change browser_window_mouse_click to use unscaled coordinates
this means frontends no longer need to scale mouse click events thus
simplifying their implementation.
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index e90f0d3c7..59b621060 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -2499,8 +2499,8 @@ static BOOL ami_gui_event(void *w) return FALSE; } - x = (ULONG)((gwin->win->MouseX - bbox->Left) / gwin->gw->scale); - y = (ULONG)((gwin->win->MouseY - bbox->Top) / gwin->gw->scale); + x = (ULONG)(gwin->win->MouseX - bbox->Left); + y = (ULONG)(gwin->win->MouseY - bbox->Top); ami_get_hscroll_pos(gwin, (ULONG *)&xs); ami_get_vscroll_pos(gwin, (ULONG *)&ys); |