]> git.saurik.com Git - wxWidgets.git/commitdiff
SetBrushOrgExt broke WIN16 compilation
authorJulian Smart <julian@anthemion.co.uk>
Mon, 20 Mar 2000 15:48:54 +0000 (15:48 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 20 Mar 2000 15:48:54 +0000 (15:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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() )