[Scummvm-cvs-logs] SF.net SVN: scummvm:[52934] scummvm/trunk/backends/platform/sdl/graphics. cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Sep 28 22:29:25 CEST 2010


Revision: 52934
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52934&view=rev
Author:   fingolfin
Date:     2010-09-28 20:29:25 +0000 (Tue, 28 Sep 2010)

Log Message:
-----------
SDL: Fix for 32 bit mode support (untested; might be good for backporting, not sure, somebody should verify)

Modified Paths:
--------------
    scummvm/trunk/backends/platform/sdl/graphics.cpp

Modified: scummvm/trunk/backends/platform/sdl/graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/graphics.cpp	2010-09-28 19:49:53 UTC (rev 52933)
+++ scummvm/trunk/backends/platform/sdl/graphics.cpp	2010-09-28 20:29:25 UTC (rev 52934)
@@ -237,7 +237,7 @@
 	// available format, it will get one that is "cheap" to
 	// use.
 	const Graphics::PixelFormat RGBList[] = {
-#ifdef ENABLE_32BIT
+#ifdef USE_RGB_COLOR
 		// RGBA8888, ARGB8888, RGB888
 		Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0),
 		Graphics::PixelFormat(4, 8, 8, 8, 8, 16, 8, 0, 24),
@@ -251,7 +251,7 @@
 		Graphics::PixelFormat(2, 4, 4, 4, 4, 8, 4, 0, 12)
 	};
 	const Graphics::PixelFormat BGRList[] = {
-#ifdef ENABLE_32BIT
+#ifdef USE_RGB_COLOR
 		// ABGR8888, BGRA8888, BGR888
 		Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24),
 		Graphics::PixelFormat(4, 8, 8, 8, 8, 8, 16, 24, 0),


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list