Fix textbox height

Fix build error under non-windows platforms
This commit is contained in:
ExMatics HydrogenC
2023-12-01 19:38:15 +08:00
parent 7b63c7016c
commit 95f5e31e48
8 changed files with 85 additions and 13 deletions

View File

@@ -316,6 +316,7 @@ namespace FlaxEngine.GUI
color = textBlock.Style.ShadowColor;
if (!enabled)
color *= 0.6f;
// We don't need font fallbacks for rich text since the font is user-selected
Render2D.DrawText(font, _text, ref textBlock.Range, color, textBlock.Bounds.Location + textBlock.Style.ShadowOffset, textBlock.Style.CustomMaterial);
}