]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
SetBrushOrgExt broke WIN16 compilation
[wxWidgets.git] / src / msw / dc.cpp
index b9a942c87ff89ed67d1b502293d37bd268fcdb87..737f7235e6c6648f061ead80fff7120767af5e3b 100644 (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() )