diff options
-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 |