GUI: Initialize class variables

This commit is contained in:
Eugene Sandulenko 2021-04-30 15:36:13 +02:00
parent 5fa661f1b0
commit ad50a1471a
No known key found for this signature in database
GPG key ID: 014D387312D34F08
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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;
}