]> git.saurik.com Git - wxWidgets.git/commitdiff
SetUserScale(1.0, 1.0) in Unmask() so the image will not be scaled again when blitted
authorRobin Dunn <robin@alldunn.com>
Thu, 23 Sep 2010 21:08:26 +0000 (21:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 23 Sep 2010 21:08:26 +0000 (21:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbufcmn.cpp

index 23055c2187b11ba3e11077cbbaef3b3196ead4ab..ad748d6ca338d27c6dd65056902e4e1524cc3676 100644 (file)
@@ -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);