SCI/newgui: fixed EGA palette code in SciGuiPicture so that palettes 1+ get applied correctly (fixes qfg1 nighttime)

svn-id: r45348
This commit is contained in:
Martin Kiewitz 2009-10-23 19:08:32 +00:00
parent 8fa9f9b0ee
commit bed7206ee3

View File

@ -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;