X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aef94d68609474317f4e6ce2394466750e992da9..2cc78389312dce6285d0d6b6e891d24372252ada:/src/msw/dc.cpp diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 33417c540a..0f31dee21b 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -1711,10 +1711,10 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest, wxDCCacheEntry* dcCacheEntry1 = FindDCInCache(NULL, source->GetHDC()); dc_mask = (HDC) dcCacheEntry1->m_dc; - wxDCCacheEntry* dcCacheEntry2 = FindDCInCache(dcCacheEntry1, dest->GetHDC()); + wxDCCacheEntry* dcCacheEntry2 = FindDCInCache(dcCacheEntry1, GetHDC()); dc_buffer = (HDC) dcCacheEntry2->m_dc; - wxDCCacheEntry* bitmapCacheEntry = FindBitmapInCache(dest->GetHDC(), + wxDCCacheEntry* bitmapCacheEntry = FindBitmapInCache(GetHDC(), width, height); buffer_bmap = (HBITMAP) bitmapCacheEntry->m_bitmap;