SetBrushOrgExt broke WIN16 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1159,10 +1159,16 @@ void wxDC::SetBrush(const wxBrush& brush)
|
|||||||
wxBitmap *stipple = m_brush.GetStipple();
|
wxBitmap *stipple = m_brush.GetStipple();
|
||||||
if ( stipple && stipple->Ok() )
|
if ( stipple && stipple->Ok() )
|
||||||
{
|
{
|
||||||
|
#ifdef __WIN32__
|
||||||
::SetBrushOrgEx(GetHdc(),
|
::SetBrushOrgEx(GetHdc(),
|
||||||
m_deviceOriginX % stipple->GetWidth(),
|
m_deviceOriginX % stipple->GetWidth(),
|
||||||
m_deviceOriginY % stipple->GetHeight(),
|
m_deviceOriginY % stipple->GetHeight(),
|
||||||
NULL); // don't need previous brush origin
|
NULL); // don't need previous brush origin
|
||||||
|
#else
|
||||||
|
::SetBrushOrg(GetHdc(),
|
||||||
|
m_deviceOriginX % stipple->GetWidth(),
|
||||||
|
m_deviceOriginY % stipple->GetHeight());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_brush.GetResourceHandle() )
|
if ( m_brush.GetResourceHandle() )
|
||||||
|
Reference in New Issue
Block a user