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:
Julian Smart
2000-03-20 15:48:54 +00:00
parent 6aa929e784
commit 05edc41991

View File

@@ -1159,10 +1159,16 @@ void wxDC::SetBrush(const wxBrush& brush)
wxBitmap *stipple = m_brush.GetStipple();
if ( stipple && stipple->Ok() )
{
#ifdef __WIN32__
::SetBrushOrgEx(GetHdc(),
m_deviceOriginX % stipple->GetWidth(),
m_deviceOriginY % stipple->GetHeight(),
NULL); // don't need previous brush origin
#else
::SetBrushOrg(GetHdc(),
m_deviceOriginX % stipple->GetWidth(),
m_deviceOriginY % stipple->GetHeight());
#endif
}
if ( m_brush.GetResourceHandle() )