X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/856d2e527d20faf46ce40734e858c7cc92b2f704..80d2803f703d1b238f42725504f08266ef02defe:/utils/serialize/sergdi.cpp?ds=sidebyside diff --git a/utils/serialize/sergdi.cpp b/utils/serialize/sergdi.cpp index f53ef6acc9..e413a4627b 100644 --- a/utils/serialize/sergdi.cpp +++ b/utils/serialize/sergdi.cpp @@ -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