]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
implemented wxNativeFontInfo::operator=() when wxUSE_PANGO, this fixes crashes when...
[wxWidgets.git] / src / msw / dc.cpp
index d16810f882f00e45aad80fd857867fac20eaa890..619844b2ec16debff6a2c30c025fe166afdf2b53 100644 (file)
@@ -29,6 +29,7 @@
 #endif
 
 #ifndef WX_PRECOMP
+    #include "wx/image.h"
     #include "wx/window.h"
     #include "wx/dc.h"
     #include "wx/utils.h"
@@ -1765,15 +1766,13 @@ void wxDC::SetUserScale(double x, double y)
 {
     WXMICROWIN_CHECK_HDC
 
-#ifndef __WXWINCE__
     if ( x == m_userScaleX && y == m_userScaleY )
         return;
 
     m_userScaleX = x;
     m_userScaleY = y;
 
-    SetMapMode(m_mappingMode);
-#endif
+    this->SetMapMode(m_mappingMode);
 }
 
 void wxDC::SetAxisOrientation(bool xLeftRight, bool yBottomUp)