From 67b3a0d7c465522feb67841c7374bf863df19357 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 10 Oct 2012 19:45:39 +0200 Subject: [PATCH] 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. --- board.c | 11 ++++++----- board.h | 1 + draw.c | 17 +++++++---------- draw.h | 4 +--- xoptions.c | 3 +-- 5 files changed, 16 insertions(+), 20 deletions(-) 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 -- 1.7.0.4