diff options
author | Torbjörn Andersson | 2006-05-21 12:32:39 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-21 12:32:39 +0000 |
commit | 75f226953a9f23b5dfa6dcf67b8833b2f8de0994 (patch) | |
tree | 6a4f80b83d9c853c225815aae98d4b1385f2c794 | |
parent | e7a4b46479170e1436bf5c97c348c4f08a679906 (diff) | |
download | scummvm-rg350-75f226953a9f23b5dfa6dcf67b8833b2f8de0994.tar.gz scummvm-rg350-75f226953a9f23b5dfa6dcf67b8833b2f8de0994.tar.bz2 scummvm-rg350-75f226953a9f23b5dfa6dcf67b8833b2f8de0994.zip |
Oops, I guess I never got around to fully implement replaceCursorPalette().
svn-id: r22552
-rw-r--r-- | graphics/paletteman.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/paletteman.cpp b/graphics/paletteman.cpp index e967bb11a8..0d751531a3 100644 --- a/graphics/paletteman.cpp +++ b/graphics/paletteman.cpp @@ -49,7 +49,6 @@ void PaletteManager::pushCursorPalette(const byte *colors, uint start, uint num) memcpy(pal->colors, colors, 4 * num); _cursorPaletteStack.push(pal); - g_system->setCursorPalette(colors, start, num); } @@ -89,6 +88,10 @@ void PaletteManager::replaceCursorPalette(const byte *colors, uint start, uint n 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 |