[Scummvm-git-logs] scummvm branch-2-3 -> 6d03b819fc5ec0e9f91fffcc1300544d603ad0b3

dreammaster dreammaster at scummvm.org
Thu Sep 30 04:02:45 UTC 2021


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:
6d03b819fc AGS: Improved savegame screenshots


Commit: 6d03b819fc5ec0e9f91fffcc1300544d603ad0b3
    https://github.com/scummvm/scummvm/commit/6d03b819fc5ec0e9f91fffcc1300544d603ad0b3
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-09-29T21:02:40-07:00

Commit Message:
AGS: Improved savegame screenshots

Changed paths:
    engines/ags/engine/ac/game.cpp


diff --git a/engines/ags/engine/ac/game.cpp b/engines/ags/engine/ac/game.cpp
index cd07778d9b..6bcb3c14f1 100644
--- a/engines/ags/engine/ac/game.cpp
+++ b/engines/ags/engine/ac/game.cpp
@@ -874,6 +874,8 @@ Bitmap *create_savegame_screenshot() {
 	int old_flags = _G(debug_flags);
 	_G(debug_flags) |= DBG_NOIFACE;
 	construct_game_scene(true);
+	render_to_screen();
+	_G(debug_flags) = old_flags;
 
 	int usewid = data_to_game_coord(_GP(play).screenshot_width);
 	int usehit = data_to_game_coord(_GP(play).screenshot_height);
@@ -890,8 +892,8 @@ Bitmap *create_savegame_screenshot() {
 	screenshot->GetAllegroBitmap()->makeOpaque();
 
 	// Restore original screen
-	_G(debug_flags) = old_flags;
 	construct_game_scene(true);
+	render_to_screen();
 
 	return screenshot;
 }




More information about the Scummvm-git-logs mailing list