[Scummvm-git-logs] scummvm master -> 6a8a002183329894315ae86cf05130db5f90ce3a
Strangerke
noreply at scummvm.org
Tue May 7 08:22:27 UTC 2024
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:
6a8a002183 BAGEL: Initialize some variables in contructor of CBagMenuDlg (CID 1544833)
Commit: 6a8a002183329894315ae86cf05130db5f90ce3a
https://github.com/scummvm/scummvm/commit/6a8a002183329894315ae86cf05130db5f90ce3a
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-07T09:22:19+01:00
Commit Message:
BAGEL: Initialize some variables in contructor of CBagMenuDlg (CID 1544833)
Changed paths:
engines/bagel/baglib/menu_dlg.cpp
diff --git a/engines/bagel/baglib/menu_dlg.cpp b/engines/bagel/baglib/menu_dlg.cpp
index e6d843581df..c814baabc7f 100644
--- a/engines/bagel/baglib/menu_dlg.cpp
+++ b/engines/bagel/baglib/menu_dlg.cpp
@@ -564,6 +564,9 @@ CBagMenuDlg::CBagMenuDlg() {
// Remove this SDEV from the storage device list so that it is not deleted
// when we switch .WLD files, and there may still be a Dialog open.
g_SDevManager->unregisterStorageDev(this);
+
+ _bAcceptInput = false;
+ _bMultipleDialogs = false;
}
CBagMenuDlg::~CBagMenuDlg() {
@@ -591,8 +594,8 @@ ErrorCode CBagMenuDlg::create(CBofWindow *pWnd, CBofPalette *pPal, const CBofRec
if (pBmp != nullptr) {
r.offsetRect(-r.left, -r.top);
assert(pPal != nullptr);
- pBmp->fillRect(&r, pPal->getNearestIndex(RGB(82, 82, 82)) /*RGB(0,0,0)*/);
- pBmp->drawRect(&r, pPal->getNearestIndex(RGB(0, 0, 0)) /*RGB(0,0,0)*/);
+ pBmp->fillRect(&r, pPal->getNearestIndex(RGB(82, 82, 82)));
+ pBmp->drawRect(&r, pPal->getNearestIndex(RGB(0, 0, 0)));
setBackdrop(pBmp);
}
More information about the Scummvm-git-logs
mailing list