From c2198da2187368170e787f57e79d8ed1f9b8f3d4 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sat, 15 Dec 2012 22:49:13 +0100 Subject: [PATCH] fixed fading of party screens --- Vocaluxe/Base/CGraphics.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Base/CGraphics.cs b/Vocaluxe/Base/CGraphics.cs index 522e4407..68f6633d 100644 --- a/Vocaluxe/Base/CGraphics.cs +++ b/Vocaluxe/Base/CGraphics.cs @@ -168,6 +168,7 @@ namespace Vocaluxe.Base private static float _GlobalAlpha; private static float _ZOffset; + private static IMenu _OldScreen; private static EScreens _CurrentScreen; private static EScreens _NextScreen; private static EPopupScreens _CurrentPopupScreen; @@ -383,11 +384,11 @@ namespace Vocaluxe.Base if (_CurrentScreen == EScreens.ScreenPartyDummy) { CFonts.PartyModeID = CParty.CurrentPartyModeID; - _Screens[(int)_CurrentScreen].Draw(); + _OldScreen.Draw(); CFonts.PartyModeID = -1; } else - _Screens[(int)_CurrentScreen].Draw(); + _OldScreen.Draw(); _GlobalAlpha = factor; @@ -437,6 +438,8 @@ namespace Vocaluxe.Base } else _Screens[(int)_CurrentScreen].Draw(); + + _OldScreen = _Screens[(int)_CurrentScreen]; } for (int i = 0; i < _PopupScreens.Count; i++)