GUI: Initialize class variables
This commit is contained in:
parent
5fa661f1b0
commit
ad50a1471a
2 changed files with 5 additions and 2 deletions
|
@ -192,6 +192,9 @@ ThemeEngine::ThemeEngine(Common::String id, GraphicsMode mode) :
|
|||
_font(nullptr), _initOk(false), _themeOk(false), _enabled(false), _themeFiles(),
|
||||
_cursor(nullptr), _scaleFactor(1.0f) {
|
||||
|
||||
_baseWidth = 640; // Default sane values
|
||||
_baseHeight = 480;
|
||||
|
||||
_system = g_system;
|
||||
_parser = new ThemeParser(this);
|
||||
_themeEval = new GUI::ThemeEval();
|
||||
|
@ -227,9 +230,9 @@ ThemeEngine::ThemeEngine(Common::String id, GraphicsMode mode) :
|
|||
|
||||
_cursorHotspotX = _cursorHotspotY = 0;
|
||||
_cursorWidth = _cursorHeight = 0;
|
||||
_cursorTransparent = 255;
|
||||
#ifndef USE_RGB_COLOR
|
||||
_cursorFormat = Graphics::PixelFormat::createFormatCLUT8();
|
||||
_cursorTransparent = 255;
|
||||
_cursorPalSize = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace GUI {
|
|||
|
||||
|
||||
Tooltip::Tooltip() :
|
||||
Dialog(-1, -1, -1, -1), _maxWidth(-1), _parent(nullptr), _xdelta(0), _ydelta(0) {
|
||||
Dialog(-1, -1, -1, -1), _maxWidth(-1), _parent(nullptr), _xdelta(0), _ydelta(0), _xpadding(0), _ypadding(0) {
|
||||
|
||||
_backgroundType = GUI::ThemeEngine::kDialogBackgroundTooltip;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue