From c3672f8433f762e7f7a33651e82a6732dc2ded54 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 25 Jun 2009 19:54:41 +0000 Subject: Replace yet another palette from file loading with Screen::loadPalette. svn-id: r41878 --- engines/kyra/seqplayer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'engines') diff --git a/engines/kyra/seqplayer.cpp b/engines/kyra/seqplayer.cpp index a027444630..2145591c03 100644 --- a/engines/kyra/seqplayer.cpp +++ b/engines/kyra/seqplayer.cpp @@ -249,11 +249,7 @@ void SeqPlayer::s1_loadPalette() { _screen->setScreenPalette(_screen->getPalette(0)); } else { - uint32 fileSize; - uint8 *srcData; - srcData = _res->fileData(_vm->seqCOLTable()[colNum], &fileSize); - memcpy(_screen->getPalette(0).getData(), srcData, fileSize); - delete[] srcData; + _screen->loadPalette(_vm->seqCOLTable()[colNum], _screen->getPalette(0)); } } -- cgit v1.2.3