X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4770df95a0ace5e4e8f67e8ea85392e464fbaad2..67e49a98bbba6793cf1e344477bee9e46d4d5c71:/src/msw/dc.cpp?ds=inline

diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp
index 7606a64098..9691e86fe2 100644
--- a/src/msw/dc.cpp
+++ b/src/msw/dc.cpp
@@ -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,