Skip to content

Commit

Permalink
Make sure to scale up message coordinates too
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Jun 8, 2024
1 parent e8c957a commit 5ad4e45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BizHawk.Client.Common/DisplayManager/OSDManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ private static PointF GetCoordinates(IBlitter g, MessagePosition position, strin
{
var size = g.MeasureString(message);
var x = position.Anchor.IsLeft()
? position.X
: g.ClipBounds.Width - position.X - size.Width;
? position.X * g.Scale
: g.ClipBounds.Width - position.X * g.Scale - size.Width;

var y = position.Anchor.IsTop()
? position.Y
: g.ClipBounds.Height - position.Y - size.Height;
? position.Y * g.Scale
: g.ClipBounds.Height - position.Y * g.Scale - size.Height;

return new PointF(x, y);
}
Expand Down

0 comments on commit 5ad4e45

Please sign in to comment.