https://git.reactos.org/?p=reactos.git;a=commitdiff;h=36cdd34814d95bec8f5b376d1373f52c358001a3

commit 36cdd34814d95bec8f5b376d1373f52c358001a3
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Wed May 31 17:00:05 2023 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Wed May 31 17:00:05 2023 +0900

    [MSPAINT] Use black and R2_NOTXORPEN instead of white and R2_XORPEN
    
    Workaround. CORE-18867, CORE-18921
---
 base/applications/mspaint/drawing.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);

Reply via email to