diff options
Diffstat (limited to 'sword2/driver/palette.cpp')
-rw-r--r-- | sword2/driver/palette.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sword2/driver/palette.cpp b/sword2/driver/palette.cpp index ac3b480871..96a73da58d 100644 --- a/sword2/driver/palette.cpp +++ b/sword2/driver/palette.cpp @@ -312,6 +312,13 @@ uint8 GetFadeStatus(void) { return fadeStatus; } +void WaitForFade(void) { + while (GetFadeStatus() != RDFADE_NONE && GetFadeStatus() != RDFADE_BLACK) { + ServiceWindows(); + g_system->delay_msecs(20); + } +} + void FadeServer() { static int32 previousTime = 0; const byte *newPalette = (const byte *) fadePalette; |