projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
1. reset default item in ~wxWindow (better to be safe)
[wxWidgets.git]
/
utils
/
serialize
/
sergdi.cpp
diff --git
a/utils/serialize/sergdi.cpp
b/utils/serialize/sergdi.cpp
index f53ef6acc927aefe5880ce4c211e9f32a5a8cd80..e413a4627b2ef311d7ebc94a8902ce26f3401704 100644
(file)
--- 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<h;y++)