Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/d884e0e53303c22e747c8d769189e21785b7f753
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/d884e0e53303c22e747c8d769189e21785b7f753
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/d884e0e53303c22e747c8d769189e21785b7f753

The branch, master has been updated
       via  d884e0e53303c22e747c8d769189e21785b7f753 (commit)
      from  470dce645bc9cfca1d438f62a8ffe7a6db80a278 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=d884e0e53303c22e747c8d769189e21785b7f753
commit d884e0e53303c22e747c8d769189e21785b7f753
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>

    Minor opt

diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 8e822f3..e337ede 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)


-----------------------------------------------------------------------

Summary of changes:
 frontends/amiga/gui.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 8e822f3..e337ede 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)


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to