[Scummvm-git-logs] scummvm master -> e24ebda04a183bfcbdb8921fc478001ec3fb4a93
Strangerke
noreply at scummvm.org
Wed May 29 21:17:44 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:
e24ebda04a BAGEL: Remove useless code in CDevDlg::create()
Commit: e24ebda04a183bfcbdb8921fc478001ec3fb4a93
https://github.com/scummvm/scummvm/commit/e24ebda04a183bfcbdb8921fc478001ec3fb4a93
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-29T22:17:37+01:00
Commit Message:
BAGEL: Remove useless code in CDevDlg::create()
Changed paths:
engines/bagel/baglib/dev_dlg.cpp
diff --git a/engines/bagel/baglib/dev_dlg.cpp b/engines/bagel/baglib/dev_dlg.cpp
index 5b050d60af1..f43c14ef9fd 100644
--- a/engines/bagel/baglib/dev_dlg.cpp
+++ b/engines/bagel/baglib/dev_dlg.cpp
@@ -52,20 +52,10 @@ ErrorCode CDevDlg::create(const char *bmp, CBofWindow *wnd, CBofPalette *pal, CB
assert(rect != nullptr);
_useExtraFl = useExtraFl;
-
- CBofRect r;
- if (!rect) {
- r = wnd->getWindowRect();
- r.offsetRect(-r.left, -r.top);
- r.bottom = r.top + MENU_DFLT_HEIGHT;
- } else {
- r = *rect;
- }
-
_guessText = new CBofText();
_guessText->setupText(rect, JUSTIFY_LEFT);
-
_guessCount = 0;
+
Common::fill(_achGuess, _achGuess + ACH_GUESS_MAX_CHARS, 0);
CBofBitmap *bitmap = nullptr;
More information about the Scummvm-git-logs
mailing list