From 60372b0d54379701d62edf5595a7dc25c48330e1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 10 Nov 2011 10:46:34 +0000 Subject: [PATCH] Applied Blit system options optimization to StretchBlit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 4420abf53a..d9f8c91288 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -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 ) -- 2.45.2