]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/bitmap.cpp
Replaced /'s with \'s as BCC requires \'s for path names
[wxWidgets.git] / src / mgl / bitmap.cpp
index 1e685b40cad07a7fbf45eb78f13d8eef5cbf0642..b2489c75fd521daa3651a9bfab74550ce2667fbb 100644 (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;
         }