diff options
| author | Jeffery Myers <[email protected]> | 2023-01-27 10:20:42 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-27 19:20:42 +0100 |
| commit | 81ca2f0bf36e59623084d583f3e26c3709b96a27 (patch) | |
| tree | 9a467d9176086a30b919aeea5d7baab44fb66722 /examples/text | |
| parent | af66e751db58b0576eb50865aac0842f6df153ea (diff) | |
| download | raylib-81ca2f0bf36e59623084d583f3e26c3709b96a27.tar.gz raylib-81ca2f0bf36e59623084d583f3e26c3709b96a27.zip | |
Fix warnings and bad project settings for 4.5 release (#2894)
Diffstat (limited to 'examples/text')
| -rw-r--r-- | examples/text/text_draw_3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/text/text_draw_3d.c b/examples/text/text_draw_3d.c index 0711d54c..127eb7c6 100644 --- a/examples/text/text_draw_3d.c +++ b/examples/text/text_draw_3d.c @@ -152,13 +152,13 @@ int main(void) if (IsFileExtension(droppedFiles.paths[0], ".ttf")) { UnloadFont(font); - font = LoadFontEx(droppedFiles.paths[0], fontSize, 0, 0); + font = LoadFontEx(droppedFiles.paths[0], (int)fontSize, 0, 0); } else if (IsFileExtension(droppedFiles.paths[0], ".fnt")) { UnloadFont(font); font = LoadFont(droppedFiles.paths[0]); - fontSize = font.baseSize; + fontSize = (float)font.baseSize; } UnloadDroppedFiles(droppedFiles); // Unload filepaths from memory @@ -742,7 +742,7 @@ static Vector3 MeasureTextWave3D(Font font, const char* text, float fontSize, fl static Color GenerateRandomColor(float s, float v) { const float Phi = 0.618033988749895f; // Golden ratio conjugate - float h = GetRandomValue(0, 360); + float h = (float)GetRandomValue(0, 360); h = fmodf((h + h*Phi), 360.0f); return ColorFromHSV(h, s, v); } |
