Fix possible precision loss by converting to float.

This commit is contained in:
2026-03-03 09:20:00 +01:00
parent 6621decc09
commit bb28285794

View File

@@ -167,7 +167,7 @@ int main() {
{
al_draw_multiline_text(font,
al_map_rgb(0xFF, 0xFF, 0xFF),
WINDOW_WIDTH / 2, WINDOW_HEIGHT / 2 - 50,
(float)WINDOW_WIDTH / 2, (float)WINDOW_HEIGHT / 2 - 50,
WINDOW_WIDTH, 10.0f,
ALLEGRO_ALIGN_CENTRE,
help);