Skip to content

Commit

Permalink
Fixed bug in screen manager assigning saved mouse state to all screen…
Browse files Browse the repository at this point in the history
…s, not just visible ones

Signed-off-by: Martin Evans <martindevans@gmail.com>
  • Loading branch information
martindevans committed Feb 19, 2016
1 parent e76c6af commit 70c81c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Myre/Myre.StateManagement/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0")]
[assembly: AssemblyVersion("4.0.1")]
5 changes: 3 additions & 2 deletions Myre/Myre.StateManagement/ScreenManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ public void Push(Screen screen)
foreach (var s in _screenStack)
{
if (s.TransitionState == TransitionState.On || s.TransitionState == TransitionState.Shown)
{
s.TransitionState = TransitionState.Off;

s.IsMouseVisible = _game.IsMouseVisible;
s.IsMouseVisible = _game.IsMouseVisible;
}
}

_screens.Add(screen);
Expand Down

0 comments on commit 70c81c0

Please sign in to comment.