[Scummvm-git-logs] scummvm master -> 979aa276a5fec4c13a1ec86068e41b7f245725e1

aquadran noreply at scummvm.org
Sun Jun 1 09:46:50 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:
979aa276a5 WINTERMUTE: Replace dependency on backend getScreenFormat()


Commit: 979aa276a5fec4c13a1ec86068e41b7f245725e1
    https://github.com/scummvm/scummvm/commit/979aa276a5fec4c13a1ec86068e41b7f245725e1
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-06-01T11:46:44+02:00

Commit Message:
WINTERMUTE: Replace dependency on backend getScreenFormat()

Changed paths:
    engines/wintermute/base/gfx/base_renderer3d.cpp


diff --git a/engines/wintermute/base/gfx/base_renderer3d.cpp b/engines/wintermute/base/gfx/base_renderer3d.cpp
index f50560b3c95..4c2ae2a7264 100644
--- a/engines/wintermute/base/gfx/base_renderer3d.cpp
+++ b/engines/wintermute/base/gfx/base_renderer3d.cpp
@@ -132,7 +132,11 @@ DXViewport BaseRenderer3D::getViewPort() {
 }
 
 Graphics::PixelFormat BaseRenderer3D::getPixelFormat() const {
-	return g_system->getScreenFormat();
+#ifdef SCUMM_BIG_ENDIAN
+	return Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0);
+#else
+	return Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24);
+#endif
 }
 
 void BaseRenderer3D::flipVertical(Graphics::Surface *s) {




More information about the Scummvm-git-logs mailing list