[Scummvm-cvs-logs] SF.net SVN: scummvm: [22552] scummvm/trunk/graphics/paletteman.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun May 21 05:33:03 CEST 2006
Revision: 22552
Author: eriktorbjorn
Date: 2006-05-21 05:32:39 -0700 (Sun, 21 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22552&view=rev
Log Message:
-----------
Oops, I guess I never got around to fully implement replaceCursorPalette().
Modified Paths:
--------------
scummvm/trunk/graphics/paletteman.cpp
Modified: scummvm/trunk/graphics/paletteman.cpp
===================================================================
--- scummvm/trunk/graphics/paletteman.cpp 2006-05-20 15:43:27 UTC (rev 22551)
+++ scummvm/trunk/graphics/paletteman.cpp 2006-05-21 12:32:39 UTC (rev 22552)
@@ -49,7 +49,6 @@
memcpy(pal->colors, colors, 4 * num);
_cursorPaletteStack.push(pal);
-
g_system->setCursorPalette(colors, start, num);
}
@@ -89,6 +88,10 @@
pal->colors = new byte[4 * num];
pal->start = start;
pal->num = num;
+ memcpy(pal->colors, colors, 4 * num);
+
+ _cursorPaletteStack.push(pal);
+ g_system->setCursorPalette(pal->colors, pal->start, pal->num);
}
} // End of namespace Graphics
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