[Scummvm-git-logs] scummvm master -> fffa98669c92e801e899152d5be8404d0e2d8700
digitall
547637+digitall at users.noreply.github.com
Tue Jun 23 21:31:32 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
fffa98669c GUI: Fix Usage of Uninitialized Variable in Theme Layout RTL Code
Commit: fffa98669c92e801e899152d5be8404d0e2d8700
https://github.com/scummvm/scummvm/commit/fffa98669c92e801e899152d5be8404d0e2d8700
Author: D G Turner (digitall at scummvm.org)
Date: 2020-06-23T22:29:03+01:00
Commit Message:
GUI: Fix Usage of Uninitialized Variable in Theme Layout RTL Code
Changed paths:
gui/ThemeLayout.h
diff --git a/gui/ThemeLayout.h b/gui/ThemeLayout.h
index e9f7802f61..51f3cd7c83 100644
--- a/gui/ThemeLayout.h
+++ b/gui/ThemeLayout.h
@@ -115,6 +115,7 @@ protected:
public:
virtual bool getWidgetData(const Common::String &name, int16 &x, int16 &y, int16 &w, int16 &h, bool &useRTL);
+ bool getUseRTL() { return _useRTL; }
virtual Graphics::TextAlign getWidgetTextHAlign(const Common::String &name);
@@ -255,7 +256,7 @@ class ThemeLayoutTabWidget : public ThemeLayoutWidget {
public:
ThemeLayoutTabWidget(ThemeLayout *p, const Common::String &name, int16 w, int16 h, Graphics::TextAlign align, int tabHeight):
- ThemeLayoutWidget(p, name, w, h, align, _useRTL) {
+ ThemeLayoutWidget(p, name, w, h, align, p->getUseRTL()) {
_tabHeight = tabHeight;
}
More information about the Scummvm-git-logs
mailing list