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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user