Make sure to scale up message coordinates too

This commit is contained in:
CasualPokePlayer 2024-06-07 23:08:14 -07:00
parent e8c957a7a8
commit 5ad4e457d3
1 changed files with 4 additions and 4 deletions

View File

@ -43,12 +43,12 @@ namespace BizHawk.Client.Common
{
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);
}