[Scummvm-git-logs] scummvm master -> 8cfdeb0d5ae73920f2a18b0cc9da6af11a464b75
dreammaster
noreply at scummvm.org
Wed Nov 26 05:36:33 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:
8cfdeb0d5a BAGEL: MFC: Don't add buttons to the active window stack
Commit: 8cfdeb0d5ae73920f2a18b0cc9da6af11a464b75
https://github.com/scummvm/scummvm/commit/8cfdeb0d5ae73920f2a18b0cc9da6af11a464b75
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-11-25T21:36:23-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