mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-27 22:06:24 +02:00
Flip overlays in Linux (yes hacky but works)
This commit is contained in:
parent
e9e06a6800
commit
f6d964cca4
1 changed files with 8 additions and 0 deletions
|
@ -314,6 +314,14 @@ namespace Ryujinx.Graphics.Gpu
|
|||
// Create canvas for drawing overlays
|
||||
using var canvas = new SKCanvas(bitmap);
|
||||
|
||||
// On Linux with OpenGL, we need to flip the Y-axis because OpenGL uses bottom-left origin
|
||||
// while SkiaSharp uses top-left origin
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
canvas.Scale(1, -1);
|
||||
canvas.Translate(0, -height);
|
||||
}
|
||||
|
||||
// Render all overlays
|
||||
_overlayManager.Render(canvas);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue