[Scummvm-git-logs] scummvm master -> bac4c7c7eaa35110871fdde521d701ae4224c7b4
aquadran
noreply at scummvm.org
Sat Dec 4 10:05:25 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:
bac4c7c7ea PLAYGROUND3D: Corrected pixel format
Commit: bac4c7c7eaa35110871fdde521d701ae4224c7b4
https://github.com/scummvm/scummvm/commit/bac4c7c7eaa35110871fdde521d701ae4224c7b4
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-04T11:05:18+01:00
Commit Message:
PLAYGROUND3D: Corrected pixel format
Changed paths:
engines/playground3d/gfx_tinygl.cpp
engines/playground3d/playground3d.cpp
diff --git a/engines/playground3d/gfx_tinygl.cpp b/engines/playground3d/gfx_tinygl.cpp
index 6797f371db..6200a8f2c1 100644
--- a/engines/playground3d/gfx_tinygl.cpp
+++ b/engines/playground3d/gfx_tinygl.cpp
@@ -90,7 +90,7 @@ void TinyGLRenderer::init() {
_fb = new TinyGL::FrameBuffer(kOriginalWidth, kOriginalHeight, g_system->getScreenFormat());
TinyGL::glInit(_fb, 512);
- tglEnableDirtyRects(false/*ConfMan.getBool("dirtyrects")*/);
+ tglEnableDirtyRects(ConfMan.getBool("dirtyrects"));
tglMatrixMode(TGL_PROJECTION);
tglLoadIdentity();
diff --git a/engines/playground3d/playground3d.cpp b/engines/playground3d/playground3d.cpp
index fa59074d40..afe2e1f062 100644
--- a/engines/playground3d/playground3d.cpp
+++ b/engines/playground3d/playground3d.cpp
@@ -69,8 +69,8 @@ Common::Error Playground3dEngine::run() {
// 2 - rotated two triangles with depth offset
// 3 - fade in/out
// 4 - moving filled rectangle in viewport
- int testId = 1;
// 5 - drawing RGBA pattern texture to check endian correctness
+ int testId = 1;
switch (testId) {
case 1:
@@ -93,7 +93,7 @@ Common::Error Playground3dEngine::run() {
Graphics::PixelFormat pixelFormatRGB(3, 8, 8, 8, 0, 0, 8, 16, 0);
#else
Graphics::PixelFormat pixelFormatRGBA(4, 8, 8, 8, 8, 24, 16, 8, 0);
- Graphics::PixelFormat pixelFormatRGB(3, 8, 8, 8, 0, 0, 8, 16, 0);
+ Graphics::PixelFormat pixelFormatRGB(3, 8, 8, 8, 0, 16, 8, 0, 0);
#endif
Graphics::PixelFormat pixelFormatRGB565(2, 5, 6, 5, 0, 11, 5, 0, 0);
Graphics::PixelFormat pixelFormatRGB5551(2, 5, 5, 5, 1, 11, 6, 1, 0);
More information about the Scummvm-git-logs
mailing list