Skip to content

Commit

Permalink
three: apply scale factor to hud
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Jul 16, 2024
1 parent 98ee190 commit 7a8a165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/three/source/hud.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 7a8a165

Please sign in to comment.