From 3bde2647b6ebc4c596c98f8550b3b432441235da Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 29 Jun 2009 16:08:00 +0000 Subject: Change raw palette read to Screen::loadPalette call. svn-id: r41946 --- engines/kyra/wsamovie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra') diff --git a/engines/kyra/wsamovie.cpp b/engines/kyra/wsamovie.cpp index 3320b90119..ef3fd1a966 100644 --- a/engines/kyra/wsamovie.cpp +++ b/engines/kyra/wsamovie.cpp @@ -64,7 +64,7 @@ int WSAMovie_v1::open(const char *filename, int offscreenDecode, Palette *palBuf offsPal = 0x300; _flags |= WF_HAS_PALETTE; if (palBuf) - memcpy(palBuf->getData(), wsaData + 8 + (_numFrames << 2), 0x300); + _screen->loadPalette(wsaData + 8 + ((_numFrames << 2) & 0xFFFF), *palBuf, 0x300); } if (offscreenDecode) { -- cgit v1.2.3