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:
Václav Slavík
2001-04-05 16:35:18 +00:00
parent c103ca4b4d
commit 097aeb9903

View File

@@ -391,7 +391,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
}
// set bitmap parameters
wxCHECK_MSG( Ok(), *this, wxT("invalid image") );
wxCHECK_MSG( Ok(), FALSE, wxT("invalid image") );
SetWidth( width );
SetHeight( bmpHeight );
if (depth == -1) depth = wxDisplayDepth();
@@ -400,7 +400,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
// create a DIB header
int headersize = sizeof(BITMAPINFOHEADER);
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
lpDIBh->bmiHeader.biSize = headersize;
lpDIBh->bmiHeader.biWidth = (DWORD)width;