X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2b905d787e575675ad9a036824ff9ad310e9006..033a5ff5c71ee7e787a3bc7e9be55ca0f5d80fa1:/src/generic/graphicc.cpp diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index b21d03e9d7..9b9e88b22f 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -1471,10 +1471,10 @@ void wxCairoContext::DrawBitmap(const wxGraphicsBitmap &bmp, wxDouble x, wxDoubl wxDouble scaleX = w / size.GetWidth(); wxDouble scaleY = h / size.GetHeight(); - cairo_scale(m_context, scaleX, scaleY); // prepare to draw the image cairo_translate(m_context, x, y); + cairo_scale(m_context, scaleX, scaleY); cairo_set_source(m_context, pattern); // use the original size here since the context is scaled already... cairo_rectangle(m_context, 0, 0, size.GetWidth(), size.GetHeight());