Compare commits

..

2 commits

Author SHA1 Message Date
SomeoneIsWorking
e4c59baf81 Merge branch 'input-cycle' into 'master'
Input cycling and overlay system

See merge request [ryubing/ryujinx!72](https://git.ryujinx.app/ryubing/ryujinx/-/merge_requests/72)
2025-06-21 05:27:35 -05:00
Barış Hamil
f6d964cca4 Flip overlays in Linux (yes hacky but works) 2025-06-21 13:23:57 +03:00

View file

@ -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);