X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=fae7a9d28f213811018a3c99b796f7a81b122458;hb=536fe50335df801d3889cd55b827bdd8055f0715;hp=29f7981873b0c907025ce5fe3f917e3351a340a1;hpb=9d5cf883b49ff08738e437514a4d0eb978c23647;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 29f7981..fae7a9d 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -3127,8 +3127,14 @@ void DrawSeekText(char *buf, int x, int y) void DrawSeekDot(int x, int y, int color) { + int square = color & 0x80; + color &= 0x7F; HBRUSH oldBrush = SelectObject(hdcSeek, color == 0 ? markerBrush : color == 1 ? darkSquareBrush : explodeBrush); + if(square) + Rectangle(hdcSeek, boardRect.left+x - squareSize/9, boardRect.top+y - squareSize/9, + boardRect.left+x + squareSize/9, boardRect.top+y + squareSize/9); + else Ellipse(hdcSeek, boardRect.left+x - squareSize/8, boardRect.top+y - squareSize/8, boardRect.left+x + squareSize/8, boardRect.top+y + squareSize/8); SelectObject(hdcSeek, oldBrush);