Skip to content

Commit

Permalink
BAGEL: Initialize some variables in contructor of CBagMenuDlg (CID 15…
Browse files Browse the repository at this point in the history
…44833)
  • Loading branch information
Strangerke committed May 7, 2024
1 parent 3cea100 commit 6a8a002
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engines/bagel/baglib/menu_dlg.cpp
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 6a8a002

Please sign in to comment.