wxMGL update (no, it still doesn't work, I'm backuping it just in case my disk burns)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -306,7 +306,7 @@ wxImage wxBitmap::ConvertToImage() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid bitmap") );
|
||||
|
||||
long width, height;
|
||||
int width, height;
|
||||
width = GetWidth();
|
||||
height = GetHeight();
|
||||
|
||||
@@ -517,6 +517,7 @@ MGLDevCtx *wxBitmap::CreateTmpDC() const
|
||||
case 4: cnt = 16; break;
|
||||
case 8: cnt = 256; break;
|
||||
default:
|
||||
cnt = 0;
|
||||
wxFAIL_MSG( wxT("bitmap with this depth cannot have palette") );
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user