]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/serialize/sergdi.cpp
MacOS 9 seems to clear the background itself, too.
[wxWidgets.git] / utils / serialize / sergdi.cpp
index f53ef6acc927aefe5880ce4c211e9f32a5a8cd80..e413a4627b2ef311d7ebc94a8902ce26f3401704 100644 (file)
@@ -90,11 +90,8 @@ void WXSERIAL(wxBitmap)::LoadObject(wxObjectInputStream& s)
   w = data_s.Read16();
   h = data_s.Read16();
 
-#ifdef __WXGTK__
-  bitmap->Resize(w, h);
-#else
-  bitmap->Create(w, h);
-#endif
+  bitmap->SetWidth(w);
+  bitmap->SetHeight(h);
   dc.SelectObject(*bitmap);
 
   for (y=0;y<h;y++)