[Scummvm-git-logs] scummvm master -> dbf3fc62bde0f6a12c26b01cd3c98e3817f19a89
yuv422
noreply at scummvm.org
Sun Feb 23 03:57:44 UTC 2025
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:
dbf3fc62bd DARKSEED: Fix palette on thumbnail when saving via the in-game menu
Commit: dbf3fc62bde0f6a12c26b01cd3c98e3817f19a89
https://github.com/scummvm/scummvm/commit/dbf3fc62bde0f6a12c26b01cd3c98e3817f19a89
Author: Eric Fry (yuv422 at reversedgames.com)
Date: 2025-02-23T14:56:37+11:00
Commit Message:
DARKSEED: Fix palette on thumbnail when saving via the in-game menu
Changed paths:
engines/darkseed/menu.cpp
engines/darkseed/room.cpp
engines/darkseed/room.h
diff --git a/engines/darkseed/menu.cpp b/engines/darkseed/menu.cpp
index d95a2eca5d2..8968b286c36 100644
--- a/engines/darkseed/menu.cpp
+++ b/engines/darkseed/menu.cpp
@@ -166,6 +166,7 @@ void Menu::loadMenu() {
if (menuItemIdx == 1) {
// restore game screen back for the save game thumbnail
g_engine->_screen->copyRectToSurface(screenCopy, 0, 0, {screenCopy.w, screenCopy.h});
+ g_engine->_room->installPalette(); // restore room working palette
g_engine->_screen->update();
_open = false; // mark menu as closed to allow saving.
g_engine->saveGameDialog();
diff --git a/engines/darkseed/room.cpp b/engines/darkseed/room.cpp
index 491ae83b816..ef1900fe495 100644
--- a/engines/darkseed/room.cpp
+++ b/engines/darkseed/room.cpp
@@ -1392,6 +1392,10 @@ void Room::restorePalette() {
_palLoaded = false;
}
+void Room::installPalette() {
+ _workPal.installPalette();
+}
+
void Room::darkenSky() {
if (isOutside() && g_engine->_currentTimeInSeconds / 3600 > 16) {
_workPal.load(_pal);
diff --git a/engines/darkseed/room.h b/engines/darkseed/room.h
index e41c6cc6685..064ca42738e 100644
--- a/engines/darkseed/room.h
+++ b/engines/darkseed/room.h
@@ -105,6 +105,7 @@ public:
void mikeStickThrowAnim();
void loadRoom61AWalkableLocations();
void restorePalette();
+ void installPalette();
void darkenSky();
void loadLocationSprites(const Common::Path &path);
Common::Point getExitPointForRoom(uint8 roomNumber);
More information about the Scummvm-git-logs
mailing list