UI - Scale end framebuffer blit (#3342)
* Scale end framebuffer blit * fix * fix * apply changes to avalonia
This commit is contained in:
@@ -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)
|
||||
|
@@ -123,10 +123,6 @@ namespace Ryujinx.Ava.Ui.Windows
|
||||
CheckLaunchState();
|
||||
}
|
||||
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
Program.WindowScaleFactor = this.PlatformImpl.RenderScaling;
|
||||
}
|
||||
_rendererWaitEvent = new AutoResetEvent(false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user