[Scummvm-git-logs] scummvm master -> 37cdc7f1bc37f9bf9c9df3aadc11fe91c72aa9e9
sev-
noreply at scummvm.org
Thu Jun 19 22:37:49 UTC 2025
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:
37cdc7f1bc BLADERUNNER: Simplify pixel format selection
Commit: 37cdc7f1bc37f9bf9c9df3aadc11fe91c72aa9e9
https://github.com/scummvm/scummvm/commit/37cdc7f1bc37f9bf9c9df3aadc11fe91c72aa9e9
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-06-20T00:37:46+02:00
Commit Message:
BLADERUNNER: Simplify pixel format selection
Changed paths:
engines/bladerunner/bladerunner.cpp
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index fb4ce6d7463..ad0cf7a4f58 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -371,18 +371,6 @@ Common::Error BladeRunnerEngine::run() {
return Common::Error(Common::kNoGameDataFoundError, missingFileStr);
}
- Common::List<Graphics::PixelFormat> tmpSupportedFormatsList = g_system->getSupportedFormats();
- if (!tmpSupportedFormatsList.empty()) {
- _screenPixelFormat = tmpSupportedFormatsList.front();
- } else {
- // Workaround for some devices which return an empty supported formats list.
- // TODO: A better fix for getSupportedFormats() - maybe figure why in only some device it might return an empty list
- //
- // Use this as a fallback format - Should be a format supported
- _screenPixelFormat = Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0);
- }
- debug("Using pixel format: %s", _screenPixelFormat.toString().c_str());
-
int16 gameBRWidth = kOriginalGameWidth;
int16 gameBRHeight = kOriginalGameHeight;
if (_isNonInteractiveDemo) {
@@ -395,7 +383,10 @@ Common::Error BladeRunnerEngine::run() {
}
}
- initGraphics(gameBRWidth, gameBRHeight, &_screenPixelFormat);
+ initGraphics(gameBRWidth, gameBRHeight, nullptr);
+ _screenPixelFormat = g_system->getScreenFormat();
+ debug("Using pixel format: %s", _screenPixelFormat.toString().c_str());
+
_system->showMouse(_isNonInteractiveDemo ? false : true);
bool hasSavegames = !SaveFileManager::list(getMetaEngine(), _targetName).empty();
More information about the Scummvm-git-logs
mailing list