mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[MSPAINT] Use black and R2_NOTXORPEN instead of white and R2_XORPEN
Workaround. CORE-18867, CORE-18921
This commit is contained in:
parent
bddd8b058c
commit
36cdd34814
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue