diff options
| author | Kim Kulling <[email protected]> | 2018-08-05 00:34:35 +0200 |
|---|---|---|
| committer | Kim Kulling <[email protected]> | 2018-08-05 00:34:35 +0200 |
| commit | b2cac82fa0190952d59227442e56dbadfe789e51 (patch) | |
| tree | 164738422e7607dce0d62e67bd079b470c9e4c5b /examples/textures | |
| parent | ecf8bff4aa8b13357398e42243d1b00fd114c579 (diff) | |
| download | raylib-b2cac82fa0190952d59227442e56dbadfe789e51.tar.gz raylib-b2cac82fa0190952d59227442e56dbadfe789e51.zip | |
Fix compiler warings in texture.c and more.
Diffstat (limited to 'examples/textures')
| -rw-r--r-- | examples/textures/textures_image_processing.c | 4 |
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); |
