diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2018-02-27 21:51:32 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2018-02-27 21:51:32 +0000 |
commit | d884e0e53303c22e747c8d769189e21785b7f753 (patch) | |
tree | 88e991966240c541352f2336eb5f88e7052b1d16 /frontends/amiga | |
parent | 470dce645bc9cfca1d438f62a8ffe7a6db80a278 (diff) | |
download | netsurf-d884e0e53303c22e747c8d769189e21785b7f753.tar.gz netsurf-d884e0e53303c22e747c8d769189e21785b7f753.tar.bz2 |
Minor opt
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 8e822f3ac..e337ede0c 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -4967,22 +4967,20 @@ void ami_get_hscroll_pos(struct gui_window_2 *gwin, ULONG *xs) if(gwin->objects[GID_HSCROLL]) { GetAttr(SCROLLER_Top, (Object *)gwin->objects[GID_HSCROLL], xs); + *xs /= gwin->gw->scale; } else { *xs = 0; } - - *xs /= gwin->gw->scale; } void ami_get_vscroll_pos(struct gui_window_2 *gwin, ULONG *ys) { if(gwin->objects[GID_VSCROLL]) { GetAttr(SCROLLER_Top, gwin->objects[GID_VSCROLL], ys); + *ys /= gwin->gw->scale; } else { *ys = 0; } - - *ys /= gwin->gw->scale; } static bool gui_window_get_scroll(struct gui_window *g, int *restrict sx, int *restrict sy) |