[Scummvm-git-logs] scummvm master -> 07d044945d2e42baceca74a592db236a8bbd86ee

somaen noreply at scummvm.org
Sun Feb 12 08:50:02 UTC 2023


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:
07d044945d BASE: Wrap -g setGraphicsMode in transactions.


Commit: 07d044945d2e42baceca74a592db236a8bbd86ee
    https://github.com/scummvm/scummvm/commit/07d044945d2e42baceca74a592db236a8bbd86ee
Author: Einar Johan Trøan Sømåen (somaen at scummvm.org)
Date: 2023-02-12T09:49:20+01:00

Commit Message:
BASE: Wrap -g setGraphicsMode in transactions.

Without this -g will simply assert.

Changed paths:
    base/main.cpp


diff --git a/base/main.cpp b/base/main.cpp
index 4b57bddb292..4e7060d9543 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -622,7 +622,9 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
 			warning("Unrecognized graphics mode '%s'. Switching to default mode", gfxModeSetting.c_str());
 		} else {
 			settings["gfx-mode"] = gfxModeSetting;
+			system.beginGFXTransaction();
 			system.setGraphicsMode(gfxModeSetting.c_str());
+			system.endGFXTransaction();
 		}
 		ConfMan.set("gfx_mode", gfxModeSetting, Common::ConfigManager::kSessionDomain);
 	}




More information about the Scummvm-git-logs mailing list