X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=a306abaac0c2f26730c701da181a3196c9f5aea1;hb=d6dec079c2c32d93ebe53a994ee6732e2ec6d81c;hp=45aaf01fa3ff52b3a71fe567b3834e51d81063f1;hpb=b7d7c902b3f869f85816a2da3872b03119affd3a;p=xboard.git diff --git a/draw.c b/draw.c index 45aaf01..a306aba 100644 --- a/draw.c +++ b/draw.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -124,13 +124,10 @@ struct { int x1, x2, y1, y2; } gridSegments[BOARD_RANKS + BOARD_FILES + 2]; -static int dual = 0; - void -SwitchWindow () +SwitchWindow (int main) { - dual = !dual; - currBoard = (dual ? &mainOptions[W_BOARD] : &dualOptions[3]); + currBoard = (main ? &mainOptions[W_BOARD] : &dualOptions[3]); csBoardWindow = DRAWABLE(currBoard); }