]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed cache-related bug in DoBlit.
authorJulian Smart <julian@anthemion.co.uk>
Thu, 30 Aug 2001 10:57:36 +0000 (10:57 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 30 Aug 2001 10:57:36 +0000 (10:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index 7606a6409867d32b3390e1ca25897814ffcf2753..9691e86fe2b4e8648565fe3edddeaf3486303abe 100644 (file)
@@ -1722,9 +1722,9 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
             dc_mask = ::CreateCompatibleDC(GetHdcOf(*source));
             dc_buffer = ::CreateCompatibleDC(GetHdc());
             buffer_bmap = ::CreateCompatibleBitmap(GetHdc(), width, height);
+#endif // wxUSE_DC_CACHEING/!wxUSE_DC_CACHEING
             ::SelectObject(dc_mask, (HBITMAP) mask->GetMaskBitmap());
             ::SelectObject(dc_buffer, buffer_bmap);
-#endif // wxUSE_DC_CACHEING/!wxUSE_DC_CACHEING
 
             // copy dest to buffer
             if ( !::BitBlt(dc_buffer, 0, 0, (int)width, (int)height,