just clarified an incorrect comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -429,12 +429,9 @@ void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right,
|
|||||||
{
|
{
|
||||||
HBRUSH old = (HBRUSH) SelectObject( (HDC) dc, wxDisableButtonBrush );
|
HBRUSH old = (HBRUSH) SelectObject( (HDC) dc, wxDisableButtonBrush );
|
||||||
|
|
||||||
// VZ: what's this?? there is no such ROP AFAIK
|
// ROP for "dest |= pattern" operation -- as it doesn't have a standard
|
||||||
#ifdef __SALFORDC__
|
// name, give it our own
|
||||||
DWORD dwRop = 0xFA0089L;
|
static const DWORD PATPAINT = 0xFA0089UL;
|
||||||
#else
|
|
||||||
DWORD dwRop = 0xFA0089UL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( with_marg )
|
if ( with_marg )
|
||||||
{
|
{
|
||||||
@@ -444,7 +441,7 @@ void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right,
|
|||||||
bottom -= 2 * m_marginY;
|
bottom -= 2 * m_marginY;
|
||||||
}
|
}
|
||||||
|
|
||||||
::PatBlt( (HDC) dc, left, top, right, bottom, dwRop);
|
::PatBlt( (HDC) dc, left, top, right, bottom, PATPAINT);
|
||||||
|
|
||||||
::SelectObject( (HDC) dc, old );
|
::SelectObject( (HDC) dc, old );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user