[Scummvm-git-logs] scummvm branch-3-0 -> ca99716de7c7c0d3f0124bbd068c91ffa983ec29

dreammaster noreply at scummvm.org
Wed Nov 26 05:37:21 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:
ca99716de7 BAGEL: MFC: Don't add buttons to the active window stack


Commit: ca99716de7c7c0d3f0124bbd068c91ffa983ec29
    https://github.com/scummvm/scummvm/commit/ca99716de7c7c0d3f0124bbd068c91ffa983ec29
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-11-25T21:37:09-08:00

Commit Message:
BAGEL: MFC: Don't add buttons to the active window stack

This fixes a bug where the Poker minigame buttons wouldn't click

Changed paths:
    engines/bagel/mfc/wnd.cpp


diff --git a/engines/bagel/mfc/wnd.cpp b/engines/bagel/mfc/wnd.cpp
index e6871efb1b4..2d8a0ea0111 100644
--- a/engines/bagel/mfc/wnd.cpp
+++ b/engines/bagel/mfc/wnd.cpp
@@ -248,7 +248,9 @@ void CWnd::ShowWindow(int nCmdShow) {
 
 	if (nCmdShow == SW_SHOW || nCmdShow == SW_SHOWNORMAL) {
 		m_nStyle |= WS_VISIBLE;
-		SetActiveWindow();
+
+		if (dynamic_cast<CFrameWnd *>(this) || dynamic_cast<CDialog *>(this))
+			SetActiveWindow();
 	} else {
 		m_nStyle &= ~WS_VISIBLE;
 	}




More information about the Scummvm-git-logs mailing list