[Scummvm-cvs-logs] SF.net SVN: scummvm:[53000] scummvm/trunk/engines/scumm/cursor.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Sun Oct 3 22:45:00 CEST 2010
Revision: 53000
http://scummvm.svn.sourceforge.net/scummvm/?rev=53000&view=rev
Author: athrxx
Date: 2010-10-03 20:44:58 +0000 (Sun, 03 Oct 2010)
Log Message:
-----------
SCUMM/FM-TOWNS: cleanup
Modified Paths:
--------------
scummvm/trunk/engines/scumm/cursor.cpp
Modified: scummvm/trunk/engines/scumm/cursor.cpp
===================================================================
--- scummvm/trunk/engines/scumm/cursor.cpp 2010-10-03 20:29:22 UTC (rev 52999)
+++ scummvm/trunk/engines/scumm/cursor.cpp 2010-10-03 20:44:58 UTC (rev 53000)
@@ -560,7 +560,6 @@
colorPCEToRGB(default_pce_cursor_colors[idx], &r, &g, &b);
color = get16BitColor(r, g, b);
} else if (_game.platform == Common::kPlatformFMTowns) {
- //uint8 tmp = (default_cursor_colors[idx] << 4) | default_cursor_colors[idx];
byte *palEntry = &_textPalette[default_cursor_colors[idx] * 3];
color = get16BitColor(palEntry[0], palEntry[1], palEntry[2]);
} else {
@@ -588,8 +587,7 @@
byte *dst2 = (_textSurfaceMultiplier == 2) ? dst1 + 16 * scl : dst1;
if (_bytesPerPixelOutput == 2) {
for (int b = 0; b < scl; b += 2) {
- WRITE_LE_UINT16(dst1, color);
- WRITE_LE_UINT16(dst2, color);
+ *((uint16*)dst1) = *((uint16*)dst2) = color;
dst1 += 2;
dst2 += 2;
}
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