mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 11:27:44 +00:00
Setup the dimensions of GuiObject in the constructor, by using reflowLayout.
This properly initializes _x, _y, _w and _h, which might be used uninitialized otherwise. This probably lead to a creash for _sev, when drawing the tab widget, before GuiObject::reflowLayout had been called. FYI GuiObject::reflowLayout is usually only called on layout changes (i.e. resolution changes etc.), thus it might not be called before drawing a newly created widget. svn-id: r46947
This commit is contained in:
parent
eccf0cc429
commit
770b2f78d4
@ -32,6 +32,7 @@ namespace GUI {
|
|||||||
|
|
||||||
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
|
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
|
||||||
_name = name;
|
_name = name;
|
||||||
|
reflowLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
GuiObject::~GuiObject() {
|
GuiObject::~GuiObject() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user