X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/856d2e527d20faf46ce40734e858c7cc92b2f704..5bf2abe34850e0952a44f3be4a4390ea12c55bd0:/utils/serialize/sergdi.cpp 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