summaryrefslogtreecommitdiffhomepage
path: root/examples/textures/textures_image_processing.c
diff options
context:
space:
mode:
authorKim Kulling <[email protected]>2018-08-05 00:34:35 +0200
committerKim Kulling <[email protected]>2018-08-05 00:34:35 +0200
commitb2cac82fa0190952d59227442e56dbadfe789e51 (patch)
tree164738422e7607dce0d62e67bd079b470c9e4c5b /examples/textures/textures_image_processing.c
parentecf8bff4aa8b13357398e42243d1b00fd114c579 (diff)
downloadraylib-b2cac82fa0190952d59227442e56dbadfe789e51.tar.gz
raylib-b2cac82fa0190952d59227442e56dbadfe789e51.zip
Fix compiler warings in texture.c and more.
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 d5c36922..6d33d95b 100644
--- a/examples/textures/textures_image_processing.c
+++ b/examples/textures/textures_image_processing.c
@@ -122,8 +122,8 @@ int main()
for (int i = 0; i < NUM_PROCESSES; i++)
{
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.0f, (i == currentProcess) ? DARKBLUE : DARKGRAY);
+ DrawRectangleLines((int)selectRecs[i].x, (int) selectRecs[i].y, (int) selectRecs[i].width, (int) selectRecs[i].height, (i == currentProcess) ? BLUE : GRAY);
+ DrawText( processText[i], (int)( selectRecs[i].x + selectRecs[i].width/2 - MeasureText(processText[i], 10)/2), (int) selectRecs[i].y + 11, 10, (i == currentProcess) ? DARKBLUE : DARKGRAY);
}
DrawTexture(texture, screenWidth - texture.width - 60, screenHeight/2 - texture.height/2, WHITE);