From 71fe0bff95108fc905c3bcf5da3d95a09ce824ae Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 23 Mar 2021 12:20:28 +0100 Subject: [PATCH] Update text_raylib_fonts.c --- examples/text/text_raylib_fonts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/text/text_raylib_fonts.c b/examples/text/text_raylib_fonts.c index 0fee8616..f14c86de 100644 --- a/examples/text/text_raylib_fonts.c +++ b/examples/text/text_raylib_fonts.c @@ -52,7 +52,7 @@ int main(void) for (int i = 0; i < MAX_FONTS; i++) { - positions[i].x = screenWidth/2 - MeasureTextEx(fonts[i], messages[i], fonts[i].baseSize*2.0f, spacings[i]).x/2.0f; + positions[i].x = screenWidth/2.0f - MeasureTextEx(fonts[i], messages[i], fonts[i].baseSize*2.0f, spacings[i]).x/2.0f; positions[i].y = 60 + fonts[i].baseSize + 45*i; }