From 9da52cb28280e0164db7073b0d3ea5abb4d20934 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 22 Jun 2009 02:35:04 +0000 Subject: Got rid of Screen::_currentPalette. svn-id: r41740 --- engines/kyra/screen_lok.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/kyra/screen_lok.cpp') diff --git a/engines/kyra/screen_lok.cpp b/engines/kyra/screen_lok.cpp index 6d97db2f28..7796b5d27c 100644 --- a/engines/kyra/screen_lok.cpp +++ b/engines/kyra/screen_lok.cpp @@ -80,13 +80,13 @@ const ScreenDim *Screen_LoK::getScreenDim(int dim) { void Screen_LoK::fadeSpecialPalette(int palIndex, int startIndex, int size, int fadeTime) { assert(_vm->palTable1()[palIndex]); - assert(_currentPalette); + assert(getPalette(0)); uint8 tempPal[768]; - memcpy(tempPal, _currentPalette, 768); + memcpy(tempPal, getPalette(0), 768); memcpy(&tempPal[startIndex*3], _vm->palTable1()[palIndex], size*3); fadePalette(tempPal, fadeTime*18); - memcpy(&_currentPalette[startIndex*3], &tempPal[startIndex*3], size*3); - setScreenPalette(_currentPalette); + memcpy(&getPalette(0)[startIndex*3], &tempPal[startIndex*3], size*3); + setScreenPalette(getPalette(0)); _system->updateScreen(); } -- cgit v1.2.3