diff options
| author | Ray <[email protected]> | 2018-08-06 20:43:28 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-08-06 20:43:28 +0200 |
| commit | 61b32e45ed9f28c2d41a0d004032941ab27780a3 (patch) | |
| tree | 919cae03feed99f32eadaba16ac3407ee2b1a602 /examples/textures/textures_image_processing.c | |
| parent | d4bb444fe502c85e1b93e27da58d965ed7b76e74 (diff) | |
| parent | f5f7ed79b820209e8d1cda0159b3d42d2aff196b (diff) | |
| download | raylib-61b32e45ed9f28c2d41a0d004032941ab27780a3.tar.gz raylib-61b32e45ed9f28c2d41a0d004032941ab27780a3.zip | |
Merge pull request #618 from kimkulling/fix_compiler_warnings
Fix compiler warnings
Diffstat (limited to 'examples/textures/textures_image_processing.c')
| -rw-r--r-- | examples/textures/textures_image_processing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/textures/textures_image_processing.c b/examples/textures/textures_image_processing.c index 427faa60..6d33d95b 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); //--------------------------------------------------------------------------------------- @@ -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, (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); |
