int ms; /* Assuming this is >= 16 bits */
} TimeMark;
+extern TimeMark programStartTime;
+
void GetTimeMark P((TimeMark *));
long SubtractTimeMarks P((TimeMark *, TimeMark *));
{
static int but1, but3, oldW, oldH;
int menuNr = -3, sizing, f, r;
+ TimeMark now;
if(n == 0) { // motion
if(SeekGraphClick(Press, x, y, 1)) return NULL;
return NULL;
}
if(n != 10 && PopDown(PromoDlg)) fromX = fromY = -1; // user starts fiddling with board when promotion dialog is up
+ else GetTimeMark(&now);
shiftKey = ShiftKeys();
controlKey = (shiftKey & 0xC) != 0;
shiftKey = (shiftKey & 3) != 0;
sizing = (oldW != x || oldH != y);
oldW = x; oldH = y;
InitDrawingHandle(mainOptions + W_BOARD);
- if(sizing) return NULL; // don't redraw while sizing
+ if(sizing && SubtractTimeMarks(&now, &programStartTime) > 10000) return NULL; // don't redraw while sizing (except at startup)
DrawPosition(True, NULL);
default:
return NULL;