Skip to content

Commit

Permalink
make all this follow ui scale
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomityGuy committed Feb 11, 2025
1 parent 5736b9c commit 301a867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/HtmlText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import h2d.RenderContext;
import h2d.Interactive;
import h2d.Object;
import h2d.Text;
import src.Settings;

/**
The `HtmlText` line height calculation rules.
Expand Down Expand Up @@ -736,7 +737,7 @@ class HtmlText extends Text {
switch (a.toLowerCase()) {
case "value":
var v = e.get(a);
if (v != null) xPos = Std.parseFloat(v);
if (v != null) xPos = Std.parseFloat(v) * Settings.uiScale;
default:
}
}
Expand Down

0 comments on commit 301a867

Please sign in to comment.