From bb28285794e3dff5ce1db805c9b7fc79c14c22fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 3 Mar 2026 09:20:00 +0100 Subject: [PATCH] Fix possible precision loss by converting to float. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 40c3d32..a4915b7 100644 --- a/src/main.c +++ b/src/main.c @@ -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);