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.Ava/Ui/Controls/RendererControl.cs | |
| parent | b8fc97adf250444e75328fee4e768e28f45ebf59 (diff) | |
UI - Scale end framebuffer blit (#3342)
* Scale end framebuffer blit
* fix
* fix
* apply changes to avalonia
Diffstat (limited to 'Ryujinx.Ava/Ui/Controls/RendererControl.cs')
| -rw-r--r-- | Ryujinx.Ava/Ui/Controls/RendererControl.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Ryujinx.Ava/Ui/Controls/RendererControl.cs b/Ryujinx.Ava/Ui/Controls/RendererControl.cs index 8321a04e..a728946c 100644 --- a/Ryujinx.Ava/Ui/Controls/RendererControl.cs +++ b/Ryujinx.Ava/Ui/Controls/RendererControl.cs @@ -73,10 +73,13 @@ namespace Ryujinx.Ava.Ui.Controls { SizeChanged?.Invoke(this, rect.Size); - RenderSize = rect.Size * Program.WindowScaleFactor; + if (!rect.IsEmpty) + { + RenderSize = rect.Size * VisualRoot.RenderScaling; - _glDrawOperation?.Dispose(); - _glDrawOperation = new GlDrawOperation(this); + _glDrawOperation?.Dispose(); + _glDrawOperation = new GlDrawOperation(this); + } } public override void Render(DrawingContext context) |
