diff options
author | Emmanuel Hansen <emmausssss@gmail.com> | 2022-05-16 21:10:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 18:10:29 -0300 |
commit | 7b9c4757dd09b9ac993559f7629bcc536a83a975 (patch) | |
tree | 3bb1adf398a4e0c63e377088ccc8407ec2ce0e04 /Ryujinx/Ui/RendererWidgetBase.cs | |
parent | b8fc97adf250444e75328fee4e768e28f45ebf59 (diff) |
UI - Scale end framebuffer blit (#3342)1.1.130
* Scale end framebuffer blit
* fix
* fix
* apply changes to avalonia
Diffstat (limited to 'Ryujinx/Ui/RendererWidgetBase.cs')
-rw-r--r-- | Ryujinx/Ui/RendererWidgetBase.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Ryujinx/Ui/RendererWidgetBase.cs b/Ryujinx/Ui/RendererWidgetBase.cs index fc3db50b..0d82a5c5 100644 --- a/Ryujinx/Ui/RendererWidgetBase.cs +++ b/Ryujinx/Ui/RendererWidgetBase.cs @@ -41,6 +41,8 @@ namespace Ryujinx.Ui public IRenderer Renderer { get; private set; } public bool ScreenshotRequested { get; set; } + protected int WindowWidth { get; private set; } + protected int WindowHeight { get; private set; } public static event EventHandler<StatusUpdatedEventArgs> StatusUpdatedEvent; @@ -71,9 +73,6 @@ namespace Ryujinx.Ui private IKeyboard _keyboardInterface; private GraphicsDebugLevel _glLogLevel; private string _gpuVendorName; - - private int _windowHeight; - private int _windowWidth; private bool _isMouseInClient; public RendererWidgetBase(InputManager inputManager, GraphicsDebugLevel glLogLevel) @@ -223,10 +222,10 @@ namespace Ryujinx.Ui Gdk.Monitor monitor = Display.GetMonitorAtWindow(Window); - _windowWidth = evnt.Width * monitor.ScaleFactor; - _windowHeight = evnt.Height * monitor.ScaleFactor; + WindowWidth = evnt.Width * monitor.ScaleFactor; + WindowHeight = evnt.Height * monitor.ScaleFactor; - Renderer?.Window.SetSize(_windowWidth, _windowHeight); + Renderer?.Window.SetSize(WindowWidth, WindowHeight); return result; } @@ -307,7 +306,7 @@ namespace Ryujinx.Ui } Renderer = renderer; - Renderer?.Window.SetSize(_windowWidth, _windowHeight); + Renderer?.Window.SetSize(WindowWidth, WindowHeight); if (Renderer != null) { |