mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CRYOMNI3D: Make sure toolbar is displayed on colored screen
If toolbar is triggered before warp first draw and after a FADE_PAL transition, screen stays black until user leaves toolbar (in blind).
This commit is contained in:
committed by
Eugene Sandulenko
parent
0e0cdbee24
commit
dae772f496
@@ -1208,6 +1208,12 @@ bool CryOmni3DEngine_Versailles::handleWarpMouse(unsigned int *actionId,
|
||||
g_system->copyRectToScreen(original->getPixels(), original->pitch, 0, 0, original->w, original->h);
|
||||
drawCountdown();
|
||||
|
||||
// Fade in palette to avoid displaying toolbar on a black screen
|
||||
if (_fadedPalette) {
|
||||
fadeInPalette(_mainPalette);
|
||||
_fadedPalette = false;
|
||||
}
|
||||
|
||||
bool mustRedraw = displayToolbar(original);
|
||||
// Don't redraw if we abort game
|
||||
if (_abortCommand != AbortNoAbort) {
|
||||
|
||||
Reference in New Issue
Block a user