Skip to content

Commit 301a867

Browse files
committed
make all this follow ui scale
1 parent 5736b9c commit 301a867

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/HtmlText.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import h2d.RenderContext;
88
import h2d.Interactive;
99
import h2d.Object;
1010
import h2d.Text;
11+
import src.Settings;
1112

1213
/**
1314
The `HtmlText` line height calculation rules.
@@ -736,7 +737,7 @@ class HtmlText extends Text {
736737
switch (a.toLowerCase()) {
737738
case "value":
738739
var v = e.get(a);
739-
if (v != null) xPos = Std.parseFloat(v);
740+
if (v != null) xPos = Std.parseFloat(v) * Settings.uiScale;
740741
default:
741742
}
742743
}

0 commit comments

Comments
 (0)