X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=a368356709a49b9acad5841563293f42e6be07a6;hb=385f8b4e934bdc4e426a5c1c9e348119447c90e2;hp=ff5a7f2e428890e3aeea8b00fd0d9beacabf9add;hpb=78eb76d6b1b20f48ec92acb3249e733a99178b91;p=xboard.git diff --git a/board.c b/board.c index ff5a7f2..a368356 100644 --- a/board.c +++ b/board.c @@ -919,10 +919,12 @@ DrawPosition (int repaint, Board board) static int lastFlipView = 0; static int lastBoardValid[2] = {0, 0}; static Board lastBoard[2]; - static char lastMarker[BOARD_RANKS][BOARD_FILES]; + static char lastMarker[BOARD_RANKS][BOARD_FILES], messedUp; int rrow, rcol; int nr = twoBoards*partnerUp; + repaint |= messedUp; + if(DrawSeekGraph()) return; // [HGM] seekgraph: suppress any drawing if seek graph up if (board == NULL) { @@ -1050,6 +1052,17 @@ DrawPosition (int repaint, Board board) FlashDelay(0); // this flushes drawing queue; if(nr) SwitchWindow(1); + else { + TimeMark now; + GetTimeMark(&now); + if(SubtractTimeMarks(&now, &programStartTime) < 1000) { + DrawSeekBackground(2*squareSize, 3*squareSize, 6*squareSize, 5*squareSize); + DrawText("Right-clicking dialog texts", 2*squareSize + 5, 3*squareSize + 5, 2); + DrawText("pops up help on them", 2*squareSize + 5, (int) (3.3*squareSize) + 5, 2); + GraphExpose(currBoard, 2*squareSize, 3*squareSize, 4*squareSize, 2*squareSize); + messedUp = TRUE; + } else messedUp = FALSE; + } } /* [AS] Arrow highlighting support */