diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-10-25 20:07:58 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-10-25 20:07:58 +0100 |
commit | a2e999584cbb7939870700b6b6b62c3da150413f (patch) | |
tree | 22cc18249cdcf6407117bded4c1aecc4b37653ca /amiga/gui.c | |
parent | 41b08da31a72084cc3af06edda15905f66e6a0bf (diff) | |
download | netsurf-a2e999584cbb7939870700b6b6b62c3da150413f.tar.gz netsurf-a2e999584cbb7939870700b6b6b62c3da150413f.tar.bz2 |
Use the correct size gadget width (thx tboeckel)
Diffstat (limited to 'amiga/gui.c')
-rw-r--r-- | amiga/gui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index bc468218d..9f4cfee21 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3906,11 +3906,10 @@ static ULONG ami_get_border_gadget_balance(struct gui_window_2 *gwin, ULONG *siz ULONG available_width; float gad1percent; - /** \TODO sz is supposed to be the width of the window's size gadget, - possibly + scrn->WBorRight. - if(gwin->objects[GID_VSCROLL]) - GetAttr(GA_Width, gwin->objects[GID_VSCROLL], (ULONG *)&sz); - */ + struct DrawInfo *dri = GetScreenDrawInfo(scrn); + GetGUIAttrs(NULL, dri, GUIA_SizeGadgetWidth, &sz, TAG_DONE); + FreeScreenDrawInfo(scrn, dri); + sz = 24; /* old calculated width on my system */ available_width = gwin->win->Width - scrn->WBorLeft - sz; |