X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebcdce46d2868eaf310467beafbcd26ebd0a5cc6..5c7fe477625af2c6802f9c4f165ab02a304d109d:/src/msw/dc.cpp 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 )