Skip to content

Commit

Permalink
fix(Studio): macOS coordinate-system issue with DPI-awareness
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Nov 8, 2024
1 parent db251d8 commit 1e8d39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Studio/CelesteStudio.Mac/SkiaDrawableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public override void DrawRect(CGRect dirtyRect) {

var ctx = NSGraphicsContext.CurrentContext.GraphicsPort;
// NOTE: macOS uses a different coordinate-system
ctx.DrawImage(new CGRect(bounds.X, Bounds.Height - bounds.Height - bounds.Y, bounds.Width / scale, bounds.Height / scale), image);
ctx.DrawImage(new CGRect(bounds.X, Bounds.Height - bounds.Height / scale - bounds.Y, bounds.Width / scale, bounds.Height / scale), image);
}

protected override void Dispose(bool disposing) {
Expand Down

0 comments on commit 1e8d39c

Please sign in to comment.