From 3665b59f49710d5a79cc57322879b8d344029f7d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 5 Apr 2026 22:31:37 -0700
Subject: [PATCH] Initialize m_effectiveAlpha
---
screenlib/UIElement.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/screenlib/UIElement.cpp b/screenlib/UIElement.cpp
index 184a9cec..440793f0 100644
--- a/screenlib/UIElement.cpp
+++ b/screenlib/UIElement.cpp
@@ -38,6 +38,7 @@ UIElement::UIElement(UIBaseElement *parent, const char *name, UIDrawEngine *draw
m_color = m_screen->MapRGB(0xFF, 0xFF, 0xFF);
m_disabledColor = m_screen->MapRGB(0x80, 0x80, 0x80);
m_alpha = SDL_ALPHA_OPAQUE;
+ m_effectiveAlpha = SDL_ALPHA_OPAQUE;
m_fontName = NULL;
m_fontSize = 0;
m_fontStyle = UIFONT_STYLE_NORMAL;