[Scummvm-git-logs] scummvm master -> 7052d0db56a1389e577e9797c819cecd636cab3a

bluegr noreply at scummvm.org
Mon Apr 6 20:37:12 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
7052d0db56 PHOENIXVR: Simplify setting true colour screen modes


Commit: 7052d0db56a1389e577e9797c819cecd636cab3a
    https://github.com/scummvm/scummvm/commit/7052d0db56a1389e577e9797c819cecd636cab3a
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2026-04-06T23:37:08+03:00

Commit Message:
PHOENIXVR: Simplify setting true colour screen modes

Changed paths:
    engines/phoenixvr/phoenixvr.cpp


diff --git a/engines/phoenixvr/phoenixvr.cpp b/engines/phoenixvr/phoenixvr.cpp
index 67607a6440c..265e9a580be 100644
--- a/engines/phoenixvr/phoenixvr.cpp
+++ b/engines/phoenixvr/phoenixvr.cpp
@@ -66,17 +66,6 @@ PhoenixVREngine::PhoenixVREngine(OSystem *syst, const ADGameDescription *gameDes
 																					 _angleY(-kPi2),
 																					 _mixer(syst->getMixer()) {
 	g_engine = this;
-	bool pixelFormatFound = false;
-	for (auto format : g_system->getSupportedFormats()) {
-		debug("supported format: %s", format.toString().c_str());
-		if (format.bytesPerPixel >= 2) {
-			pixelFormatFound = true;
-			_pixelFormat = format;
-			break;
-		}
-	}
-	if (!pixelFormatFound)
-		error("Couldn't find 16/32-bit pixel format");
 
 	if (gameIdMatches("amerzone")) {
 		_levels.push_back("01VR_PHARE");
@@ -986,8 +975,13 @@ void PhoenixVREngine::tick(float dt) {
 }
 
 Common::Error PhoenixVREngine::run() {
+	initGraphics(640, 480, nullptr);
+
+	_pixelFormat = g_system->getScreenFormat();
+	if (_pixelFormat.isCLUT8())
+		return Common::kUnsupportedColorMode;
+
 	_arn.reset(ARN::create());
-	initGraphics(640, 480, &_pixelFormat);
 #ifdef USE_FREETYPE2
 	static const Common::String family("NotoSerif-Bold.ttf");
 	_font12.reset(Graphics::loadTTFFontFromArchive(family, 12));




More information about the Scummvm-git-logs mailing list