[Scummvm-git-logs] scummvm master -> 8867779598af78615227c42405f17e47c43a6da9

ccawley2011 noreply at scummvm.org
Sun Jul 6 14:02:46 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
8867779598 GUI: Fix uninitialised array in PicButtonWidget constructor


Commit: 8867779598af78615227c42405f17e47c43a6da9
    https://github.com/scummvm/scummvm/commit/8867779598af78615227c42405f17e47c43a6da9
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-07-06T15:02:35+01:00

Commit Message:
GUI: Fix uninitialised array in PicButtonWidget constructor

Changed paths:
    gui/widget.cpp


diff --git a/gui/widget.cpp b/gui/widget.cpp
index ac6618af7fe..580ee1850f4 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -621,7 +621,7 @@ const Graphics::ManagedSurface *scaleGfx(const Graphics::ManagedSurface *gfx, in
 
 PicButtonWidget::PicButtonWidget(GuiObject *boss, int x, int y, int w, int h, bool scale, const Common::U32String &tooltip, uint32 cmd, uint8 hotkey)
 	: ButtonWidget(boss, x, y, w, h, scale, Common::U32String(), tooltip, cmd, hotkey),
-	  _showButton(true) {
+	  _showButton(true), _gfx{} {
 	Common::fill(_alphaType, _alphaType + ARRAYSIZE(_alphaType), Graphics::ALPHA_OPAQUE);
 	setFlags(WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG);
 	_type = kButtonWidget;
@@ -633,7 +633,7 @@ PicButtonWidget::PicButtonWidget(GuiObject *boss, int x, int y, int w, int h, co
 
 PicButtonWidget::PicButtonWidget(GuiObject *boss, const Common::String &name, const Common::U32String &tooltip, uint32 cmd, uint8 hotkey)
 	: ButtonWidget(boss, name, Common::U32String(), tooltip, cmd, hotkey),
-	  _showButton(true) {
+	  _showButton(true), _gfx{} {
 	Common::fill(_alphaType, _alphaType + ARRAYSIZE(_alphaType), Graphics::ALPHA_OPAQUE);
 	setFlags(WIDGET_ENABLED/* | WIDGET_BORDER*/ | WIDGET_CLEARBG);
 	_type = kButtonWidget;




More information about the Scummvm-git-logs mailing list