mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Set the space required by a listbox sensibly as well.
[originally from svn r3122]
This commit is contained in:
parent
1ecb4a043f
commit
8f2027fa36
@ -1,4 +1,4 @@
|
||||
/* $Id: macctrls.c,v 1.37 2003/04/14 23:25:04 ben Exp $ */
|
||||
/* $Id: macctrls.c,v 1.38 2003/04/14 23:28:58 ben Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2003 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -905,7 +905,7 @@ static void macctrl_listbox(struct macctrls *mcs, WindowPtr window,
|
||||
#endif
|
||||
}
|
||||
add234(mcs->byctrl, mc);
|
||||
curstate->pos.v += 6 + 20 * ctrl->listbox.height;
|
||||
curstate->pos.v += 6 + 16 * ctrl->listbox.height + 2;
|
||||
mc->generic.next = mcs->panels[curstate->panelnum];
|
||||
mcs->panels[curstate->panelnum] = mc;
|
||||
ctrlevent(mcs, mc, EVENT_REFRESH);
|
||||
|
Loading…
Reference in New Issue
Block a user