From 7a8a16557638bda118d762cb1ed9ce0a9a7d2a95 Mon Sep 17 00:00:00 2001 From: redthing1 Date: Tue, 16 Jul 2024 01:00:54 -0700 Subject: [PATCH] three: apply scale factor to hud --- demo/three/source/hud.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/three/source/hud.d b/demo/three/source/hud.d index e544705d..484d743e 100644 --- a/demo/three/source/hud.d +++ b/demo/three/source/hud.d @@ -14,7 +14,8 @@ class HUDScene : Scene2D { auto msg = create_entity("msg", Vector2(pad, resolution.y - pad)); auto hello_text = msg.add_component(new Text(Text.default_font, - "hello, third dimension!", 10, Colors.PURPLE)); + "hello, third dimension!", 10 * cast(int) Core.scale_factor, Colors.PURPLE + )); hello_text.set_align(Text.Align.Close, Text.Align.Far); } }