X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/856d2e527d20faf46ce40734e858c7cc92b2f704..be71e18af4e329233714e2e0b59049ef6b3c606d:/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