diff options
author | Florian Kagerer | 2010-10-03 20:44:58 +0000 |
---|---|---|
committer | Florian Kagerer | 2010-10-03 20:44:58 +0000 |
commit | 0596971decae5d64857cf01eb11cf5694043440d (patch) | |
tree | 4bee4db8101d86678a0668494db4a3e1d02c7884 | |
parent | 5d7ce32fbd4911f449e614bcf445cb2a26ed30d7 (diff) | |
download | scummvm-rg350-0596971decae5d64857cf01eb11cf5694043440d.tar.gz scummvm-rg350-0596971decae5d64857cf01eb11cf5694043440d.tar.bz2 scummvm-rg350-0596971decae5d64857cf01eb11cf5694043440d.zip |
SCUMM/FM-TOWNS: cleanup
svn-id: r53000
-rw-r--r-- | engines/scumm/cursor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp index 80e7899650..3ea6891f05 100644 --- a/engines/scumm/cursor.cpp +++ b/engines/scumm/cursor.cpp @@ -560,7 +560,6 @@ void ScummEngine_v5::setBuiltinCursor(int idx) { 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 @@ void ScummEngine_v5::setBuiltinCursor(int idx) { 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; } |