[Scummvm-git-logs] scummvm master -> 2a17542799eb69fa5c1a290d06eed9db92260e16

aquadran aquadran at gmail.com
Sat Feb 13 13:28:20 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:
2a17542799 ICB: Corrected pixel format for in game GFX


Commit: 2a17542799eb69fa5c1a290d06eed9db92260e16
    https://github.com/scummvm/scummvm/commit/2a17542799eb69fa5c1a290d06eed9db92260e16
Author: Paweł Kołodziejski (aquadran at users.sourceforge.net)
Date: 2021-02-13T14:28:12+01:00

Commit Message:
ICB: Corrected pixel format for in game GFX

Changed paths:
    engines/icb/movie_pc.h
    engines/icb/surface_manager.cpp


diff --git a/engines/icb/movie_pc.h b/engines/icb/movie_pc.h
index da2ae29dc4..1292edc14e 100644
--- a/engines/icb/movie_pc.h
+++ b/engines/icb/movie_pc.h
@@ -102,7 +102,7 @@ class MovieManager {
 public:
 	MovieManager() : _x(0), _y(0) {
 		_binkDecoder = new Video::BinkDecoder();
-		_binkDecoder->setDefaultHighColorFormat(Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0));
+		_binkDecoder->setDefaultHighColorFormat(Graphics::PixelFormat(4, 8, 8, 8, 0, 16, 8, 0, 24));
 	};
 	~MovieManager() { delete _binkDecoder; };
 
diff --git a/engines/icb/surface_manager.cpp b/engines/icb/surface_manager.cpp
index 61621a16f7..72f71ae4c0 100644
--- a/engines/icb/surface_manager.cpp
+++ b/engines/icb/surface_manager.cpp
@@ -199,10 +199,9 @@ uint32 _surface_manager::Init_direct_draw() {
 	TinyGL::glInit(_zb, 256);
 
 	sdl_screen = new Graphics::Surface();
-	sdl_screen->create(640, 480, Graphics::PixelFormat(4, 8, 8, 8, 0, 24, 16, 8, 0));
+	sdl_screen->create(640, 480, Graphics::PixelFormat(4, 8, 8, 8, 0, 16, 8, 0, 24));
 
 	if (!sdl_screen->getBasePtr(0, 0)) {
-		//		SDL_Quit();
 		Fatal_error("Initialise Graphics::Surface::create failed");
 	}
 
@@ -440,7 +439,7 @@ uint32 _surface_manager::Create_new_surface(const char *name, uint32 width, uint
 	m_Surfaces[slot]->m_height = height;
 	m_Surfaces[slot]->m_name = name;
 	m_Surfaces[slot]->m_dds = new Graphics::Surface;
-	m_Surfaces[slot]->m_dds->create(width, height, Graphics::PixelFormat(4, 8, 8, 8, 0, 24, 16, 8, 0));
+	m_Surfaces[slot]->m_dds->create(width, height, Graphics::PixelFormat(4, 8, 8, 8, 0, 16, 8, 0, 24));
 
 	if (m_Surfaces[slot]->m_dds)
 		return slot;




More information about the Scummvm-git-logs mailing list