]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
Fix wxAffineMatrix2D::Translate() to multiply on the left.
[wxWidgets.git] / src / msw / dc.cpp
index 4420abf53a3725da8a5d35fc39e2bb2795662a76..d9f8c91288f27985a69e62be378ebc7ab108f670 100644 (file)
@@ -2317,7 +2317,8 @@ bool wxMSWDCImpl::DoStretchBlit(wxCoord xdest, wxCoord ydest,
         // than the wxWidgets fall-back implementation. So we need
         // to be able to switch this on and off at runtime.
 #if wxUSE_SYSTEM_OPTIONS
-        if (wxSystemOptions::GetOptionInt(wxT("no-maskblt")) == 0)
+        static bool s_maskBltAllowed = wxSystemOptions::GetOptionInt("no-maskblt") == 0;
+        if ( s_maskBltAllowed )
 #endif
         {
             if ( dstWidth == srcWidth && dstHeight == srcHeight )