From: H.G. Muller Date: Wed, 10 Oct 2012 17:45:39 +0000 (+0200) Subject: Let expose requests pay proper attenton to widget X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=67b3a0d7c465522feb67841c7374bf863df19357;p=xboard.git Let expose requests pay proper attenton to widget So far, expose requests were always assumed to be for the board widget, preventing display of the labels. --- diff --git a/board.c b/board.c index e0f0649..b8be924 100644 --- a/board.c +++ b/board.c @@ -98,6 +98,7 @@ extern char *getenv(); #include "backend.h" #include "moves.h" #include "board.h" +#include "draw.h" #ifdef __EMX__ @@ -812,10 +813,10 @@ DrawSquare (int row, int column, ChessSquare piece, int do_flash) if (do_flash && piece != EmptySquare && appData.flashCount > 0) { for (i=0; ihandle) return; e.x = x; e.y = y; e.width = w; e.height = h; e.count = -1; e.type = Expose; // count = -1: kludge to suppress sizing GraphEventProc(opt->handle, (caddr_t) opt, (XEvent *) &e); // fake expose event