From: H.G. Muller Date: Fri, 20 Apr 2012 08:29:36 +0000 (+0200) Subject: Fix WB Engine Settings window X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c3c64cc054125aa802e1f171d02f7e3cba75fd40;p=xboard.git Fix WB Engine Settings window The listbox patch has broken this window, by making it only list the first option of the engine, by switching to the next column based on a >= test rather than == test. Fixed by using 1000 as invalid value for the break point, rather than -1. --- diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 5bbcc30..65f9e78 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -602,7 +602,7 @@ void AddOption(int x, int y, Control type, int i) void CreateDialogTemplate(int *layoutList, int nr, Option *optionList) { - int i, ii, j, x=1, y=0, maxY=0, buttonRows, breakPoint = -1, k=0; + int i, ii, j, x=1, y=0, maxY=0, buttonRows, breakPoint = 1000, k=0; template.header.cdit = 0; template.header.cx = 307;