Fix some MSVC compile errors
[xboard.git] / winboard / winboard.c
index 8c47c62..96bca01 100644 (file)
@@ -3163,9 +3163,9 @@ void DrawSeekText(char *buf, int x, int y)
 void DrawSeekDot(int x, int y, int color)\r
 {\r
        int square = color & 0x80;\r
-       color &= 0x7F;\r
-           HBRUSH oldBrush = SelectObject(hdcSeek, \r
+       HBRUSH oldBrush = SelectObject(hdcSeek, \r
                        color == 0 ? markerBrush : color == 1 ? darkSquareBrush : explodeBrush);\r
+       color &= 0x7F;\r
        if(square)\r
            Rectangle(hdcSeek, boardRect.left+x - squareSize/9, boardRect.top+y - squareSize/9,\r
                               boardRect.left+x + squareSize/9, boardRect.top+y + squareSize/9);\r