From e6933ff9111c872f32f0bab7606251c53375679e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 23 Sep 2010 21:08:26 +0000 Subject: [PATCH] SetUserScale(1.0, 1.0) in Unmask() so the image will not be scaled again when blitted git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcbufcmn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/dcbufcmn.cpp b/src/common/dcbufcmn.cpp index 23055c2187..ad748d6ca3 100644 --- a/src/common/dcbufcmn.cpp +++ b/src/common/dcbufcmn.cpp @@ -130,6 +130,9 @@ void wxBufferedDC::UnMask() wxCoord x = 0, y = 0; + // Ensure the scale matches the device + SetUserScale(1.0, 1.0); + if ( m_style & wxBUFFER_CLIENT_AREA ) GetDeviceOrigin(&x, &y); -- 2.47.2