[Scummvm-cvs-logs] SF.net SVN: scummvm:[43022] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Mon Aug 3 03:48:15 CEST 2009
Revision: 43022
http://scummvm.svn.sourceforge.net/scummvm/?rev=43022&view=rev
Author: dkasak13
Date: 2009-08-03 01:48:15 +0000 (Mon, 03 Aug 2009)
Log Message:
-----------
* Fixed bug which made characters talk with the wrong colour; the colour indexes are indexed from 1 in the data files so we need to subtract 1.
* Turned on font transparency again.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.cpp 2009-08-03 01:21:04 UTC (rev 43021)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.cpp 2009-08-03 01:48:15 UTC (rev 43022)
@@ -179,12 +179,7 @@
}
// Paint pixel (if not transparent)
- // HACK: Temporary turned off transparency because the dragon's colour of the
- // font appears to be 255 (which should be transparent).
- // This would not be a problem if the font background was also not colour
- // 255 (apparently) so I don't know how to handle the background being
- // transparent and at the same time a non-transparent font body.
- //if (colour != _transparent)
+ if (colour != _transparent)
ptr[x] = colour;
}
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-03 01:21:04 UTC (rev 43021)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-03 01:48:15 UTC (rev 43022)
@@ -54,7 +54,7 @@
for (i = 0; i < numPersons; ++i) {
_persons[i]._x = personData.readUint16LE();
_persons[i]._y = personData.readUint16LE();
- _persons[i]._fontColour = personData.readByte();
+ _persons[i]._fontColour = personData.readByte() - 1;
}
// Close persons file
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