]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/serialize/sergdi.cpp
updates for swig generated code
[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++)