From 05edc419915ed4d79ac60e61e6746e65e998ea02 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 20 Mar 2000 15:48:54 +0000 Subject: [PATCH] SetBrushOrgExt broke WIN16 compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index b9a942c87f..737f7235e6 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -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() ) -- 2.45.2