]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied Blit system options optimization to StretchBlit
authorJulian Smart <julian@anthemion.co.uk>
Thu, 10 Nov 2011 10:46:34 +0000 (10:46 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 10 Nov 2011 10:46:34 +0000 (10:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 )