Skip to content

Commit

Permalink
Fix fullscreen when using 'Show Title Bar' (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWarnut authored Nov 6, 2024
1 parent 20cc21a commit 47b8145
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,7 @@ public void ToggleFullscreen()
if (WindowState is not WindowState.Normal)
{
WindowState = WindowState.Normal;
Window.TitleBar.ExtendsContentIntoTitleBar = !ConfigurationState.Instance.ShowTitleBar;

if (IsGameRunning)
{
Expand All @@ -1785,6 +1786,7 @@ public void ToggleFullscreen()
else
{
WindowState = WindowState.FullScreen;
Window.TitleBar.ExtendsContentIntoTitleBar = true;

if (IsGameRunning)
{
Expand Down
14 changes: 7 additions & 7 deletions src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<viewModels:MainWindowViewModel />
</Design.DataContext>
<DockPanel HorizontalAlignment="Stretch">
<Border Name="RyuLogo" Padding="7, 0, 0, 0" VerticalAlignment="Center" HorizontalAlignment="Center">
<Image
ToolTip.Tip="{Binding Title}"
Height="25"
Width="25"
Source="resm:Ryujinx.UI.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.UI.Common" />
</Border>
<Image
Name="RyuLogo"
Margin="7,0"
Height="25"
Width="25"
ToolTip.Tip="{Binding Title}"
Source="resm:Ryujinx.UI.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.UI.Common" />
<Menu
Name="Menu"
Height="35"
Expand Down

0 comments on commit 47b8145

Please sign in to comment.