[Scummvm-git-logs] scummvm master -> 56565c65e7ea6973df4dfe51be86bbe99878b415
sev-
noreply at scummvm.org
Fri Oct 25 21:12:58 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:
56565c65e7 GRAPHICS: MACGUI: Fix regression after ManagedSurface usage changes
Commit: 56565c65e7ea6973df4dfe51be86bbe99878b415
https://github.com/scummvm/scummvm/commit/56565c65e7ea6973df4dfe51be86bbe99878b415
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-10-25T23:12:53+02:00
Commit Message:
GRAPHICS: MACGUI: Fix regression after ManagedSurface usage changes
Changed paths:
graphics/macgui/macmenu.cpp
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp
index 7263589017b..4c802b27157 100644
--- a/graphics/macgui/macmenu.cpp
+++ b/graphics/macgui/macmenu.cpp
@@ -1249,7 +1249,8 @@ void MacMenu::renderSubmenu(MacMenuSubMenu *menu, bool recursive) {
if (r->top + h >= _screen.h)
h = _screen.h - 1 - r->top;
- Graphics::ManagedSurface g(*_wm->_screenCopy, _wm->_screenCopy->getBounds());
+ Graphics::ManagedSurface g;
+ g.copyFrom(*_wm->_screenCopy);
g.transBlitFrom(_screen, _wm->_colorGreen);
g_system->copyRectToScreen(g.getBasePtr(r->left, r->top), g.pitch, r->left, r->top, w, h);
}
More information about the Scummvm-git-logs
mailing list