Lots of updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -516,10 +516,11 @@ bool wxBitmap::CreateFromImage (
|
||||
)
|
||||
{
|
||||
wxCHECK_MSG(rImage.Ok(), FALSE, wxT("invalid image"));
|
||||
m_refData = new wxBitmapRefData();
|
||||
|
||||
int nSizeLimit = 1024 * 768 * 3;
|
||||
int nWidth = GetWidth();
|
||||
int nBmpHeight = GetHeight();
|
||||
int nWidth = rImage.GetWidth();
|
||||
int nBmpHeight = rImage.GetHeight();
|
||||
int nBytePerLine = nWidth * 3;
|
||||
int nSizeDWORD = sizeof(DWORD);
|
||||
int nLineBoundary = nBytePerLine % nSizeDWORD;
|
||||
|
Reference in New Issue
Block a user