[Scummvm-cvs-logs] SF.net SVN: scummvm:[42282] scummvm/branches/gsoc2009-16bit/backends/ platform/sdl/graphics.cpp
upthorn at users.sourceforge.net
upthorn at users.sourceforge.net
Thu Jul 9 11:10:06 CEST 2009
Revision: 42282
http://scummvm.svn.sourceforge.net/scummvm/?rev=42282&view=rev
Author: upthorn
Date: 2009-07-09 09:10:05 +0000 (Thu, 09 Jul 2009)
Log Message:
-----------
corrected creation of one Graphics::PixelFormat to reflect the resurrection of Graphics::PixelFormat::createFormatCLUT8
Modified Paths:
--------------
scummvm/branches/gsoc2009-16bit/backends/platform/sdl/graphics.cpp
Modified: scummvm/branches/gsoc2009-16bit/backends/platform/sdl/graphics.cpp
===================================================================
--- scummvm/branches/gsoc2009-16bit/backends/platform/sdl/graphics.cpp 2009-07-09 09:09:05 UTC (rev 42281)
+++ scummvm/branches/gsoc2009-16bit/backends/platform/sdl/graphics.cpp 2009-07-09 09:10:05 UTC (rev 42282)
@@ -1379,7 +1379,7 @@
void OSystem_SDL::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y, uint32 keycolor, int cursorTargetScale, const Graphics::PixelFormat *format) {
#ifdef ENABLE_RGB_COLOR
if (!format)
- _cursorFormat = Graphics::PixelFormat(1,8,8,8,8,0,0,0,0);
+ _cursorFormat = Graphics::PixelFormat::createFormatCLUT8;
else if (format->bytesPerPixel <= _screenFormat.bytesPerPixel)
_cursorFormat = *format;
keycolor &= (1 << (_cursorFormat.bytesPerPixel << 3)) - 1;
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