From d884e0e53303c22e747c8d769189e21785b7f753 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 27 Feb 2018 21:51:32 +0000 Subject: Minor opt --- frontends/amiga/gui.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'frontends/amiga') 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) -- cgit v1.2.3