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:
Le Philousophe
2019-06-01 22:43:48 +02:00
committed by Eugene Sandulenko
parent 0e0cdbee24
commit dae772f496
+6
View File
@@ -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) {