#endif
#ifdef __WXMAC__
-#include "wx/mac/private.h"
+#include "wx/osx/private.h"
#include <cairo-quartz.h>
#include <cairo-atsui.h>
#endif
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
}