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:
Václav Slavík
2001-08-01 22:57:11 +00:00
parent 57d677d15e
commit a4bbc9f720
14 changed files with 967 additions and 131 deletions

View File

@@ -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;
}