X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=69079be7784cc0632035aee73aabc0272149b37f;hb=1521e22cc981acc74bd7420d78c35d7e4cc87491;hp=3e8de0bd8386342e77a2a7020fe7b9b3d584f8d6;hpb=1251e4d2bd5ff562f337e6638db71d21696b54cc;p=xboard.git diff --git a/xboard.c b/xboard.c index 3e8de0b..69079be 100644 --- a/xboard.c +++ b/xboard.c @@ -1736,8 +1736,8 @@ ReSize (WindowPlacement *wp) } else ResizeBoardWindow(BOARD_WIDTH * (squareSize + lineGap) + lineGap, BOARD_HEIGHT * (squareSize + lineGap) + lineGap, 0); w = BOARD_WIDTH * (squareSize + lineGap) + lineGap; h = BOARD_HEIGHT * (squareSize + lineGap) + lineGap; - if(optList->max > w) optList->max = w; - if(optList->value > h) optList->value = h; + if(optList[W_BOARD].max > w) optList[W_BOARD].max = w; + if(optList[W_BOARD].value > h) optList[W_BOARD].value = h; } static XtIntervalId delayedDragID = 0;