X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9008abec2edcb5f86342fbc7cfee824094218b5..5d67db40d8548aa82227a42997f78cc731ea1036:/src/generic/graphicc.cpp diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 70debbac5e..fb79e9611d 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -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 }