summaryrefslogtreecommitdiffhomepage
path: root/examples/textures/textures_image_processing.c
diff options
context:
space:
mode:
authorKim Kulling <[email protected]>2018-08-04 10:32:16 +0200
committerKim Kulling <[email protected]>2018-08-04 10:32:16 +0200
commitecf8bff4aa8b13357398e42243d1b00fd114c579 (patch)
treec0283562db86abf79a7018e87163a3cbdba40d1e /examples/textures/textures_image_processing.c
parentd999e5a016446c74bfb2c2b55febcf89fa46e527 (diff)
downloadraylib-ecf8bff4aa8b13357398e42243d1b00fd114c579.tar.gz
raylib-ecf8bff4aa8b13357398e42243d1b00fd114c579.zip
Fix compiler warnings, first part
Diffstat (limited to 'examples/textures/textures_image_processing.c')
-rw-r--r--examples/textures/textures_image_processing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures/textures_image_processing.c b/examples/textures/textures_image_processing.c
index 427faa60..d5c36922 100644
--- a/examples/textures/textures_image_processing.c
+++ b/examples/textures/textures_image_processing.c
@@ -59,7 +59,7 @@ int main()
Rectangle selectRecs[NUM_PROCESSES];
- for (int i = 0; i < NUM_PROCESSES; i++) selectRecs[i] = (Rectangle){ 40, 50 + 32*i, 150, 30 };
+ for (int i = 0; i < NUM_PROCESSES; i++) selectRecs[i] = (Rectangle){ 40.0f, (float)(50 + 32*i), 150.0f, 30.0f };
SetTargetFPS(60);
//---------------------------------------------------------------------------------------
@@ -123,7 +123,7 @@ int main()
{
DrawRectangleRec(selectRecs[i], (i == currentProcess) ? SKYBLUE : LIGHTGRAY);
DrawRectangleLines(selectRecs[i].x, selectRecs[i].y, selectRecs[i].width, selectRecs[i].height, (i == currentProcess) ? BLUE : GRAY);
- DrawText(processText[i], selectRecs[i].x + selectRecs[i].width/2 - MeasureText(processText[i], 10)/2, selectRecs[i].y + 11, 10, (i == currentProcess) ? DARKBLUE : DARKGRAY);
+ DrawText(processText[i], selectRecs[i].x + selectRecs[i].width/2 - MeasureText(processText[i], 10)/2, selectRecs[i].y + 11, 10.0f, (i == currentProcess) ? DARKBLUE : DARKGRAY);
}
DrawTexture(texture, screenWidth - texture.width - 60, screenHeight/2 - texture.height/2, WHITE);