adjust subbitmap mask code to new representation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-01-21 12:16:57 +00:00
parent e1cceb75f0
commit d25d7be8a7

View File

@@ -945,7 +945,7 @@ wxBitmap wxBitmap::GetSubBitmap(const wxRect &rect) const
unsigned char *destdata = (unsigned char * ) maskbuf.GetWriteBuf( maskbufsize ) ;
wxASSERT( (source != NULL) && (destdata != NULL) ) ;
source += rect.x + rect.y * sourcelinesize ;
source += rect.x * 3 + rect.y * sourcelinesize ;
unsigned char *dest = destdata ;
for (int yy = 0; yy < destheight; ++yy, source += sourcelinesize , dest += destlinesize)