Skip to content

Commit

Permalink
Make resizable display optional. Only set resizable display if in-gam…
Browse files Browse the repository at this point in the history
…e width/height are > 0
  • Loading branch information
ethanmoffat committed Apr 30, 2023
1 parent 09335df commit d11689a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions EndlessClient/Controllers/LoginController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,15 @@ public async Task LoginToCharacter(Character character)
gameLoadingDialog?.CloseDialog();
}

await DispatcherGameComponent.Invoke(() =>
if (_configurationProvider.InGameWidth != 0 && _configurationProvider.InGameHeight != 0)
{
_clientWindowSizeRepository.Width = _configurationProvider.InGameWidth;
_clientWindowSizeRepository.Height = _configurationProvider.InGameHeight;
});
_clientWindowSizeRepository.Resizable = true;
await DispatcherGameComponent.Invoke(() =>
{
_clientWindowSizeRepository.Width = _configurationProvider.InGameWidth;
_clientWindowSizeRepository.Height = _configurationProvider.InGameHeight;
});
_clientWindowSizeRepository.Resizable = true;
}

_gameStateActions.ChangeToState(GameStates.PlayingTheGame);
_chatTextBoxActions.FocusChatTextBox();
Expand Down

0 comments on commit d11689a

Please sign in to comment.