From: Vadim Zeitlin Date: Fri, 23 Jan 2004 22:06:37 +0000 (+0000) Subject: just clarified an incorrect comment X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2b2685355f66a0e693790847058ca1ee9c08d456 just clarified an incorrect comment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/bmpbuttn.cpp b/src/msw/bmpbuttn.cpp index a91de899b4..c95b5e5c49 100644 --- a/src/msw/bmpbuttn.cpp +++ b/src/msw/bmpbuttn.cpp @@ -429,12 +429,9 @@ void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right, { HBRUSH old = (HBRUSH) SelectObject( (HDC) dc, wxDisableButtonBrush ); - // VZ: what's this?? there is no such ROP AFAIK -#ifdef __SALFORDC__ - DWORD dwRop = 0xFA0089L; -#else - DWORD dwRop = 0xFA0089UL; -#endif + // ROP for "dest |= pattern" operation -- as it doesn't have a standard + // name, give it our own + static const DWORD PATPAINT = 0xFA0089UL; if ( with_marg ) { @@ -444,7 +441,7 @@ void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right, bottom -= 2 * m_marginY; } - ::PatBlt( (HDC) dc, left, top, right, bottom, dwRop); + ::PatBlt( (HDC) dc, left, top, right, bottom, PATPAINT); ::SelectObject( (HDC) dc, old ); }