summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-10-25 19:24:58 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-10-25 19:24:58 +0100
commitd31aa9a95933413b4c51f60689710fd76944b96d (patch)
tree45b6ff675a7908dea607b1421cd6e265060127c6 /amiga
parent2ad41a78c4501b2b17903bcd259b5b12a85d7dc2 (diff)
downloadnetsurf-d31aa9a95933413b4c51f60689710fd76944b96d.tar.gz
netsurf-d31aa9a95933413b4c51f60689710fd76944b96d.tar.bz2
Use more sensible default value for size gadget width
Diffstat (limited to 'amiga')
-rw-r--r--amiga/gui.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index eb554989b..939619be2 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3882,15 +3882,16 @@ static ULONG ami_get_border_gadget_balance(struct gui_window_2 *gwin, ULONG *siz
** a convenience.
*/
- ULONG sz = 30; /* temporary arbitrary value */
+ ULONG sz;
ULONG available_width;
float gad1percent;
- /**TODO: This is getting the width of the vertical scroll bar, which is not
- necessarily the same as the width of the size gadget that we are
- supposed to be accounting for. */
+ /** \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);
+ */
+ sz = 24; /* old calculated width on my system */
available_width = gwin->win->Width - scrn->WBorLeft - sz;