Skip to content

Commit 780d311

Browse files
committed
whoops - fixing 8bpp modes
1 parent 8fbfa25 commit 780d311

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Engine/Flc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ void DECODE_COLOR()
338338
flc.colors[i].b=*(pSrc++)<<2;
339339
i++;
340340
}
341+
flc.realscreen->setPalette(flc.colors, NumColorsSkip, i);
341342
SDL_SetColors(flc.mainscreen, flc.colors, NumColorsSkip, i);
343+
flc.realscreen->getSurface(); // force palette update to really happen
342344
}
343345
} /* DECODE_COLOR */
344346

@@ -448,15 +450,13 @@ int FlcInit(const char *filename)
448450
//exit(1);
449451
return -1;
450452
}
451-
#if 0
452453
if (flc.realscreen->getSurface()->getSurface()->format->BitsPerPixel == 8)
453454
{
454455
flc.mainscreen = flc.realscreen->getSurface()->getSurface();
455456
} else
456457
{
457-
#endif
458458
flc.mainscreen = SDL_AllocSurface(SDL_SWSURFACE, flc.screen_w, flc.screen_h, 8, 0, 0, 0, 0);
459-
//}
459+
}
460460
return 0;
461461
//SDLInit(filename);
462462
} /* FlcInit */

src/Menu/StartState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ void StartState::think()
142142
if (Options::getBool("playIntro") && CrossPlatform::fileExists(introFile))
143143
{
144144
audioSequence = new AudioSequence(_game->getResourcePack());
145-
Flc::flc.loop = 0; // just the one time, please
146145
Flc::flc.realscreen = _game->getScreen();
147146
Flc::FlcInit(introFile.c_str());
147+
Flc::flc.loop = 0; // just the one time, please
148148
Flc::FlcMain(&audioHandler);
149149
Flc::FlcDeInit();
150150
delete audioSequence;

0 commit comments

Comments
 (0)