[Scummvm-cvs-logs] SF.net SVN: scummvm:[42617] scummvm/branches/gsoc2009-16bit/backends/ platform/sdl/graphics.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sun Jul 19 17:00:40 CEST 2009
Revision: 42617
http://scummvm.svn.sourceforge.net/scummvm/?rev=42617&view=rev
Author: mthreepwood
Date: 2009-07-19 15:00:39 +0000 (Sun, 19 Jul 2009)
Log Message:
-----------
Fix 16bit color when using the hardware screen's pixel format. The call was never updated after r42467.
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-19 14:54:16 UTC (rev 42616)
+++ scummvm/branches/gsoc2009-16bit/backends/platform/sdl/graphics.cpp 2009-07-19 15:00:39 UTC (rev 42617)
@@ -254,8 +254,8 @@
if (_hwscreen) {
// Get our currently set hardware format
format = Graphics::PixelFormat(_hwscreen->format->BytesPerPixel,
- _hwscreen->format->Rloss, _hwscreen->format->Gloss,
- _hwscreen->format->Bloss, _hwscreen->format->Aloss,
+ 8 - _hwscreen->format->Rloss, 8 - _hwscreen->format->Gloss,
+ 8 - _hwscreen->format->Bloss, 8 - _hwscreen->format->Aloss,
_hwscreen->format->Rshift, _hwscreen->format->Gshift,
_hwscreen->format->Bshift, _hwscreen->format->Ashift);
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