From: H.G. Muller Date: Sat, 6 Oct 2012 18:16:54 +0000 (+0200) Subject: Suppress redraw during sizing X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1cb7d2e7d2ed173e267748ed1216c5d28e3968f8;p=xboard.git Suppress redraw during sizing --- diff --git a/dialogs.c b/dialogs.c index 61085f7..8bf5c76 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2047,7 +2047,7 @@ MenuCallback (int n) static Option * Exp (int n, int x, int y) { - static int but1, but3; + static int but1, but3, oldSquareSize; int menuNr = -3; if(n == 0) { // motion @@ -2068,7 +2068,9 @@ Exp (int n, int x, int y) case -2: shiftKey = !shiftKey; case -3: menuNr = RightClick(Release, x, y, &pmFromX, &pmFromY), but3 = 0; break; case 10: + if(squareSize != oldSquareSize) return NULL; // don't redraw while sizing DrawPosition(True, NULL); + oldSquareSize = squareSize; default: return NULL; }