diff --git a/base/applications/mspaint/drawing.cpp b/base/applications/mspaint/drawing.cpp index afcae889bc0..05599d2d2cc 100644 --- a/base/applications/mspaint/drawing.cpp +++ b/base/applications/mspaint/drawing.cpp @@ -366,9 +366,9 @@ ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, void DrawXorRect(HDC hdc, const RECT *prc) { - HGDIOBJ oldPen = ::SelectObject(hdc, ::CreatePen(PS_SOLID, 0, RGB(255, 255, 255))); + HGDIOBJ oldPen = ::SelectObject(hdc, ::CreatePen(PS_SOLID, 0, RGB(0, 0, 0))); HGDIOBJ oldBrush = ::SelectObject(hdc, ::GetStockObject(NULL_BRUSH)); - INT oldRop2 = SetROP2(hdc, R2_XORPEN); + INT oldRop2 = SetROP2(hdc, R2_NOTXORPEN); ::Rectangle(hdc, prc->left, prc->top, prc->right, prc->bottom); ::SetROP2(hdc, oldRop2); ::SelectObject(hdc, oldBrush);