Skip to content

Commit

Permalink
misc: Remove RendererHost AXAML
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Jan 1, 2025
1 parent 37c165e commit fd2b5a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
12 changes: 0 additions & 12 deletions src/Ryujinx/UI/Renderer/RendererHost.axaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
using Avalonia;
using Avalonia;
using Avalonia.Controls;
using Gommon;
using Avalonia.Media;
using Ryujinx.Ava.Utilities.Configuration;
using Ryujinx.Common;
using Ryujinx.Common.Configuration;
using Ryujinx.Common.Logging;
using System;
using System.Runtime.InteropServices;

namespace Ryujinx.Ava.UI.Renderer
{
public partial class RendererHost : UserControl, IDisposable
public class RendererHost : UserControl, IDisposable
{
public readonly EmbeddedWindow EmbeddedWindow;

Expand All @@ -19,7 +18,8 @@ public partial class RendererHost : UserControl, IDisposable

public RendererHost()
{
InitializeComponent();
Focusable = true;
FlowDirection = FlowDirection.LeftToRight;

EmbeddedWindow = ConfigurationState.Instance.Graphics.GraphicsBackend.Value switch
{
Expand All @@ -43,8 +43,6 @@ public RendererHost()

public RendererHost(string titleId)
{
InitializeComponent();

switch (TitleIDs.SelectGraphicsBackend(titleId, ConfigurationState.Instance.Graphics.GraphicsBackend))
{
case GraphicsBackend.OpenGl:
Expand Down Expand Up @@ -109,3 +107,4 @@ private void CurrentWindow_WindowCreated(object sender, nint e)
}
}
}

0 comments on commit fd2b5a7

Please sign in to comment.