diff options
author | Johannes Schickel | 2009-06-29 16:07:46 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-29 16:07:46 +0000 |
commit | 0bf94cb194edcdfe23a53adeb15fec6057e9bc28 (patch) | |
tree | cc2b525b85e261e6e40fe5fd479b11a52abe6bca /engines | |
parent | bf81e432e14c48fa303fb2d36664ced2eca3e11b (diff) | |
download | scummvm-rg350-0bf94cb194edcdfe23a53adeb15fec6057e9bc28.tar.gz scummvm-rg350-0bf94cb194edcdfe23a53adeb15fec6057e9bc28.tar.bz2 scummvm-rg350-0bf94cb194edcdfe23a53adeb15fec6057e9bc28.zip |
Chang Palette parameter of LolEngine::setPaletteBrightness to be const.
svn-id: r41945
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/lol.cpp | 4 | ||||
-rw-r--r-- | engines/kyra/lol.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index f687aaec4d..312234905b 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -1672,8 +1672,8 @@ void LoLEngine::transformRegion(int x1, int y1, int x2, int y2, int w, int h, in } } -void LoLEngine::setPaletteBrightness(Palette &pal, int brightness, int modifier) { - generateBrightnessPalette(pal, _screen->getPalette(1), brightness, modifier); +void LoLEngine::setPaletteBrightness(const Palette &srcPal, int brightness, int modifier) { + generateBrightnessPalette(srcPal, _screen->getPalette(1), brightness, modifier); _screen->fadePalette(_screen->getPalette(1), 5, 0); _screen->_fadeFlag = 0; } diff --git a/engines/kyra/lol.h b/engines/kyra/lol.h index c632b8558d..a9eb971fbd 100644 --- a/engines/kyra/lol.h +++ b/engines/kyra/lol.h @@ -872,7 +872,7 @@ private: void toggleSelectedCharacterFrame(bool mode); void fadeText(); void transformRegion(int x1, int y1, int x2, int y2, int w, int h, int srcPage, int dstPage); - void setPaletteBrightness(Palette &pal, int brightness, int modifier); + void setPaletteBrightness(const Palette &srcPal, int brightness, int modifier); void generateBrightnessPalette(const Palette &src, Palette &dst, int brightness, int modifier); void generateFlashPalette(uint8 *src, uint8 *dst, int colorFlags); void updateSequenceBackgroundAnimations(); |