Applied Blit system options optimization to StretchBlit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2317,7 +2317,8 @@ bool wxMSWDCImpl::DoStretchBlit(wxCoord xdest, wxCoord ydest,
|
|||||||
// than the wxWidgets fall-back implementation. So we need
|
// than the wxWidgets fall-back implementation. So we need
|
||||||
// to be able to switch this on and off at runtime.
|
// to be able to switch this on and off at runtime.
|
||||||
#if wxUSE_SYSTEM_OPTIONS
|
#if wxUSE_SYSTEM_OPTIONS
|
||||||
if (wxSystemOptions::GetOptionInt(wxT("no-maskblt")) == 0)
|
static bool s_maskBltAllowed = wxSystemOptions::GetOptionInt("no-maskblt") == 0;
|
||||||
|
if ( s_maskBltAllowed )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if ( dstWidth == srcWidth && dstHeight == srcHeight )
|
if ( dstWidth == srcWidth && dstHeight == srcHeight )
|
||||||
|
Reference in New Issue
Block a user