[Scummvm-cvs-logs] SF.net SVN: scummvm:[41806] scummvm/trunk/engines/tinsel/palette.cpp
Hkz at users.sourceforge.net
Hkz at users.sourceforge.net
Tue Jun 23 15:24:46 CEST 2009
Revision: 41806
http://scummvm.svn.sourceforge.net/scummvm/?rev=41806&view=rev
Author: Hkz
Date: 2009-06-23 13:24:46 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
tinsel: added some comments to psx palette mapper
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/palette.cpp
Modified: scummvm/trunk/engines/tinsel/palette.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/palette.cpp 2009-06-23 13:23:51 UTC (rev 41805)
+++ scummvm/trunk/engines/tinsel/palette.cpp 2009-06-23 13:24:46 UTC (rev 41806)
@@ -99,6 +99,7 @@
bool colorFound = false;
uint16 clutEntry = 0;
+ // Empty the table with color correspondences
memset(mapperTable, 0, 16);
for (int j = 1; j < 16; j++) {
@@ -115,7 +116,7 @@
uint16 psxEquivalent = TINSEL_PSX_RGB(TINSEL_GetRValue(pal->palRGB[i]) >> 3, TINSEL_GetGValue(pal->palRGB[i]) >> 3, TINSEL_GetBValue(pal->palRGB[i]) >> 3);
if (psxEquivalent == clutEntry) {
- mapperTable[j] = i + 1;
+ mapperTable[j] = i + 1; // Add entry in the table for the found color
colorFound = true;
}
}
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