summaryrefslogtreecommitdiffhomepage
path: root/examples/shapes/shapes_colors_palette.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-04-25 09:50:26 -0700
committerGitHub <[email protected]>2021-04-25 18:50:26 +0200
commit6c518008a58853197890b45e941f342e4195de60 (patch)
tree429e12c1ee0c6206c69c7a93c7726aa3ab3d533b /examples/shapes/shapes_colors_palette.c
parent87198586554e218834542098ec40e6611452c3aa (diff)
downloadraylib-6c518008a58853197890b45e941f342e4195de60.tar.gz
raylib-6c518008a58853197890b45e941f342e4195de60.zip
Fixes for 64 bit typecast warnings (#1733)
Diffstat (limited to 'examples/shapes/shapes_colors_palette.c')
-rw-r--r--examples/shapes/shapes_colors_palette.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/shapes/shapes_colors_palette.c b/examples/shapes/shapes_colors_palette.c
index a0bba002..0865d581 100644
--- a/examples/shapes/shapes_colors_palette.c
+++ b/examples/shapes/shapes_colors_palette.c
@@ -37,10 +37,10 @@ int main(void)
// Fills colorsRecs data (for every rectangle)
for (int i = 0; i < MAX_COLORS_COUNT; i++)
{
- colorsRecs[i].x = 20 + 100*(i%7) + 10*(i%7);
- colorsRecs[i].y = 80 + 100*(i/7) + 10*(i/7);
- colorsRecs[i].width = 100;
- colorsRecs[i].height = 100;
+ colorsRecs[i].x = 20.0f + 100.0f *(i%7) + 10.0f *(i%7);
+ colorsRecs[i].y = 80.0f + 100.0f *(i/7) + 10.0f *(i/7);
+ colorsRecs[i].width = 100.0f;
+ colorsRecs[i].height = 100.0f;
}
int colorState[MAX_COLORS_COUNT] = { 0 }; // Color state: 0-DEFAULT, 1-MOUSE_HOVER