diff options
| author | Jeffery Myers <[email protected]> | 2021-04-25 09:50:26 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-25 18:50:26 +0200 |
| commit | 6c518008a58853197890b45e941f342e4195de60 (patch) | |
| tree | 429e12c1ee0c6206c69c7a93c7726aa3ab3d533b /examples/text/text_font_spritefont.c | |
| parent | 87198586554e218834542098ec40e6611452c3aa (diff) | |
| download | raylib-6c518008a58853197890b45e941f342e4195de60.tar.gz raylib-6c518008a58853197890b45e941f342e4195de60.zip | |
Fixes for 64 bit typecast warnings (#1733)
Diffstat (limited to 'examples/text/text_font_spritefont.c')
| -rw-r--r-- | examples/text/text_font_spritefont.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/text/text_font_spritefont.c b/examples/text/text_font_spritefont.c index 8ff63bb9..424e2719 100644 --- a/examples/text/text_font_spritefont.c +++ b/examples/text/text_font_spritefont.c @@ -38,14 +38,14 @@ int main(void) Font font2 = LoadFont("resources/custom_alagard.png"); // Font loading Font font3 = LoadFont("resources/custom_jupiter_crash.png"); // Font loading - Vector2 fontPosition1 = { screenWidth/2 - MeasureTextEx(font1, msg1, (float)font1.baseSize, -3).x/2, - screenHeight/2 - font1.baseSize/2 - 80 }; + Vector2 fontPosition1 = { screenWidth/2.0f - MeasureTextEx(font1, msg1, (float)font1.baseSize, -3).x/2, + screenHeight/2.0f - font1.baseSize/2.0f - 80.0f }; - Vector2 fontPosition2 = { screenWidth/2 - MeasureTextEx(font2, msg2, (float)font2.baseSize, -2).x/2, - screenHeight/2 - font2.baseSize/2 - 10 }; + Vector2 fontPosition2 = { screenWidth/2.0f - MeasureTextEx(font2, msg2, (float)font2.baseSize, -2.0f).x/2.0f, + screenHeight/2.0f - font2.baseSize/2.0f - 10.0f }; - Vector2 fontPosition3 = { screenWidth/2.0f - MeasureTextEx(font3, msg3, (float)font3.baseSize, 2).x/2, - screenHeight/2.0f - font3.baseSize/2 + 50 }; + Vector2 fontPosition3 = { screenWidth/2.0f - MeasureTextEx(font3, msg3, (float)font3.baseSize, 2.0f).x/2.0f, + screenHeight/2.0f - font3.baseSize/2.0f + 50.0f }; SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- |
