fixed fading of party screens

This commit is contained in:
Alexander Eckart committed 2012-12-15 22:49:13 +01:00
1 parent 007ea68a15
commit c2198da218
1 file changed
+5 -2
+5 -2
View File
@@ -168,6 +168,7 @@ namespace Vocaluxe.Base
private static float _GlobalAlpha; private static float _GlobalAlpha;
private static float _ZOffset; private static float _ZOffset;
private static IMenu _OldScreen;
private static EScreens _CurrentScreen; private static EScreens _CurrentScreen;
private static EScreens _NextScreen; private static EScreens _NextScreen;
private static EPopupScreens _CurrentPopupScreen; private static EPopupScreens _CurrentPopupScreen;
@@ -383,11 +384,11 @@ namespace Vocaluxe.Base
if (_CurrentScreen == EScreens.ScreenPartyDummy) if (_CurrentScreen == EScreens.ScreenPartyDummy)
{ {
CFonts.PartyModeID = CParty.CurrentPartyModeID; CFonts.PartyModeID = CParty.CurrentPartyModeID;
_Screens[(int)_CurrentScreen].Draw(); _OldScreen.Draw();
CFonts.PartyModeID = -1; CFonts.PartyModeID = -1;
} }
else else
_Screens[(int)_CurrentScreen].Draw(); _OldScreen.Draw();
_GlobalAlpha = factor; _GlobalAlpha = factor;
@@ -437,6 +438,8 @@ namespace Vocaluxe.Base
} }
else else
_Screens[(int)_CurrentScreen].Draw(); _Screens[(int)_CurrentScreen].Draw();
_OldScreen = _Screens[(int)_CurrentScreen];
} }
for (int i = 0; i < _PopupScreens.Count; i++) for (int i = 0; i < _PopupScreens.Count; i++)