From 1cb7d2e7d2ed173e267748ed1216c5d28e3968f8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 6 Oct 2012 20:16:54 +0200 Subject: [PATCH] Suppress redraw during sizing --- dialogs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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; } -- 1.7.0.4