X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9008abec2edcb5f86342fbc7cfee824094218b5..3201a1046ba71ba8e5ef2ed694fde34d12f743f3:/src/generic/graphicc.cpp?ds=sidebyside diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 70debbac5e..08b92ef8c7 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -107,7 +107,7 @@ static inline double RadToDeg(double deg) #endif #ifdef __WXMAC__ -#include "wx/mac/private.h" +#include "wx/osx/private.h" #include #include #endif @@ -1042,22 +1042,15 @@ wxCairoContext::wxCairoContext( wxGraphicsRenderer* renderer, const wxPrinterDC& const wxDCImpl *impl = dc.GetImpl(); Init( (cairo_t*) impl->GetCairoContext() ); -#if 0 - wxGraphicsMatrix matrix = CreateMatrix(); - wxPoint org = dc.GetDeviceOrigin(); - matrix.Translate( org.x, org.y ); + cairo_translate( m_context, org.x, org.y ); - org = dc.GetLogicalOrigin(); - matrix.Translate( -org.x, -org.y ); - double sx,sy; dc.GetUserScale( &sx, &sy ); - matrix.Scale( sx, sy ); - - ConcatTransform( matrix ); -#endif + cairo_scale( m_context, sx, sy ); + org = dc.GetLogicalOrigin(); + cairo_translate( m_context, -org.x, -org.y ); #endif }