aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-23 19:08:32 +0000
committerMartin Kiewitz2009-10-23 19:08:32 +0000
commitbed7206ee34d1c938227112393c8ef516c0c2fdf (patch)
treed11370f8420d1de904c5758517a03f9aa012bfb0 /engines
parent8fa9f9b0eef5c1d74d6ec674528176e76f12187f (diff)
downloadscummvm-rg350-bed7206ee34d1c938227112393c8ef516c0c2fdf.tar.gz
scummvm-rg350-bed7206ee34d1c938227112393c8ef516c0c2fdf.tar.bz2
scummvm-rg350-bed7206ee34d1c938227112393c8ef516c0c2fdf.zip
SCI/newgui: fixed EGA palette code in SciGuiPicture so that palettes 1+ get applied correctly (fixes qfg1 nighttime)
svn-id: r45348
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gui/gui_picture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_picture.cpp b/engines/sci/gui/gui_picture.cpp
index 6416be9211..c33e219815 100644
--- a/engines/sci/gui/gui_picture.cpp
+++ b/engines/sci/gui/gui_picture.cpp
@@ -304,7 +304,7 @@ void SciGuiPicture::drawVectorData(byte *data, int dataSize) {
byte pic_color = 0, pic_priority = 255, pic_control = 255;
int16 x = 0, y = 0, oldx, oldy;
byte EGApalettes[PIC_EGAPALETTE_TOTALSIZE] = {0};
- byte *EGApalette = &EGApalettes[_EGApaletteNo];
+ byte *EGApalette = &EGApalettes[_EGApaletteNo * PIC_EGAPALETTE_SIZE];
byte EGApriority[PIC_EGAPRIORITY_SIZE] = {0};
bool isEGA = false;
int curPos = 0;