mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 03:01:02 +00:00
GUI: More object initialization cleanup
This commit is contained in:
parent
b590cc2d8f
commit
c7ad2155fc
@ -311,6 +311,12 @@ ThemeEngine::ThemeEngine(Common::String id, GraphicsMode mode) :
|
||||
_themeArchive = 0;
|
||||
_initOk = false;
|
||||
|
||||
_cursorHotspotX = _cursorHotspotY = 0;
|
||||
_cursorWidth = _cursorHeight = 0;
|
||||
_cursorPalSize = 0;
|
||||
|
||||
_needPaletteUpdates = false;
|
||||
|
||||
// We prefer files in archive bundles over the common search paths.
|
||||
_themeFiles.add("default", &SearchMan, 0, false);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace GUI {
|
||||
|
||||
|
||||
Tooltip::Tooltip() :
|
||||
Dialog(-1, -1, -1, -1), _maxWidth(-1) {
|
||||
Dialog(-1, -1, -1, -1), _maxWidth(-1), _parent(NULL), _xdelta(0), _ydelta(0) {
|
||||
|
||||
_backgroundType = GUI::ThemeEngine::kDialogBackgroundTooltip;
|
||||
}
|
||||
|
@ -51,6 +51,8 @@ Dialog::Dialog(int x, int y, int w, int h)
|
||||
// will for example crash after returning to the launcher when the user
|
||||
// started a 640x480 game with a non 1x scaler.
|
||||
g_gui.checkScreenChange();
|
||||
|
||||
_result = -1;
|
||||
}
|
||||
|
||||
Dialog::Dialog(const Common::String &name)
|
||||
@ -66,6 +68,8 @@ Dialog::Dialog(const Common::String &name)
|
||||
// Fixes bug #1590596: "HE: When 3x graphics are choosen, F5 crashes game"
|
||||
// and bug #1595627: "SCUMM: F5 crashes game (640x480)"
|
||||
g_gui.checkScreenChange();
|
||||
|
||||
_result = -1;
|
||||
}
|
||||
|
||||
int Dialog::runModal() {
|
||||
|
@ -282,6 +282,7 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc)
|
||||
//
|
||||
// 6) The MIDI tab
|
||||
//
|
||||
_globalMIDIOverride = false;
|
||||
if (!_guioptions.contains(GUIO_NOMIDI)) {
|
||||
tab->addTab(_("MIDI"));
|
||||
|
||||
@ -296,6 +297,7 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc)
|
||||
//
|
||||
// 7) The MT-32 tab
|
||||
//
|
||||
_globalMT32Override = false;
|
||||
if (!_guioptions.contains(GUIO_NOMIDI)) {
|
||||
tab->addTab(_("MT-32"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user