allow raw access to a part of the image only (faster when using alpha)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-05-01 16:37:51 +00:00
parent b72b192036
commit a452af5e68
3 changed files with 94 additions and 20 deletions

View File

@@ -2314,7 +2314,7 @@ wxAlphaBlend(wxDC& dc, int xDst, int yDst, int w, int h, const wxBitmap& bmpSrc)
// combine them with the source bitmap using alpha
wxAlphaPixelData dataDst(bmpDst),
dataSrc(bmpSrc);
dataSrc((wxBitmap &)bmpSrc);
wxCHECK_RET( dataDst && dataSrc,
_T("failed to get raw data in wxAlphaBlend") );