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/core | |
| 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/core')
| -rw-r--r-- | examples/core/core_custom_frame_control.c | 6 | ||||
| -rw-r--r-- | examples/core/core_drop_files.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/core/core_custom_frame_control.c b/examples/core/core_custom_frame_control.c index ed0dbc66..9bfd25d3 100644 --- a/examples/core/core_custom_frame_control.c +++ b/examples/core/core_custom_frame_control.c @@ -86,8 +86,8 @@ int main(void) DrawCircle((int)position, GetScreenHeight()/2 - 25, 50, RED); - DrawText(TextFormat("%03.0f ms", timeCounter*1000.0f), position - 40, GetScreenHeight()/2 - 100, 20, MAROON); - DrawText(TextFormat("PosX: %03.0f", position), position - 50, GetScreenHeight()/2 + 40, 20, BLACK); + DrawText(TextFormat("%03.0f ms", timeCounter*1000.0f), (int)position - 40, GetScreenHeight()/2 - 100, 20, MAROON); + DrawText(TextFormat("PosX: %03.0f", position), (int)position - 50, GetScreenHeight()/2 + 40, 20, BLACK); DrawText("Circle is moving at a constant 200 pixels/sec,\nindependently of the frame rate.", 10, 10, 20, DARKGRAY); DrawText("PRESS SPACE to PAUSE MOVEMENT", 10, GetScreenHeight() - 60, 20, GRAY); @@ -115,7 +115,7 @@ int main(void) deltaTime = (float)(currentTime - previousTime); } } - else deltaTime = updateDrawTime; // Framerate could be variable + else deltaTime = (float)updateDrawTime; // Framerate could be variable previousTime = currentTime; //---------------------------------------------------------------------------------- diff --git a/examples/core/core_drop_files.c b/examples/core/core_drop_files.c index 9ebe0f95..cfe03e19 100644 --- a/examples/core/core_drop_files.c +++ b/examples/core/core_drop_files.c @@ -58,7 +58,7 @@ int main(void) { DrawText("Dropped files:", 100, 40, 20, DARKGRAY); - for (int i = 0; i < droppedFiles.count; i++) + for (unsigned int i = 0; i < droppedFiles.count; i++) { if (i%2 == 0) DrawRectangle(0, 85 + 40*i, screenWidth, 40, Fade(LIGHTGRAY, 0.5f)); else DrawRectangle(0, 85 + 40*i, screenWidth, 40, Fade(LIGHTGRAY, 0.3f)); |
