fixed typos in wxBitmap::ConvertToImage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -391,7 +391,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set bitmap parameters
|
// set bitmap parameters
|
||||||
wxCHECK_MSG( Ok(), *this, wxT("invalid image") );
|
wxCHECK_MSG( Ok(), FALSE, wxT("invalid image") );
|
||||||
SetWidth( width );
|
SetWidth( width );
|
||||||
SetHeight( bmpHeight );
|
SetHeight( bmpHeight );
|
||||||
if (depth == -1) depth = wxDisplayDepth();
|
if (depth == -1) depth = wxDisplayDepth();
|
||||||
@@ -400,7 +400,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
|
|||||||
// create a DIB header
|
// create a DIB header
|
||||||
int headersize = sizeof(BITMAPINFOHEADER);
|
int headersize = sizeof(BITMAPINFOHEADER);
|
||||||
BITMAPINFO *lpDIBh = (BITMAPINFO *) malloc( headersize );
|
BITMAPINFO *lpDIBh = (BITMAPINFO *) malloc( headersize );
|
||||||
wxCHECK_MSG( lpDIBh, bitmap, wxT("could not allocate memory for DIB header") );
|
wxCHECK_MSG( lpDIBh, FALSE, wxT("could not allocate memory for DIB header") );
|
||||||
// Fill in the DIB header
|
// Fill in the DIB header
|
||||||
lpDIBh->bmiHeader.biSize = headersize;
|
lpDIBh->bmiHeader.biSize = headersize;
|
||||||
lpDIBh->bmiHeader.biWidth = (DWORD)width;
|
lpDIBh->bmiHeader.biWidth = (DWORD)width;
|
||||||
|
Reference in New Issue
Block a user