We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d6ef19 commit b210d16Copy full SHA for b210d16
examples/shapes/shapes_colors_palette.c
@@ -45,7 +45,7 @@ int main(void)
45
for (int i = 0; i < MAX_COLORS_COUNT; i++)
46
{
47
colorsRecs[i].x = 20.0f + 100.0f *(i%7) + 10.0f *(i%7);
48
- colorsRecs[i].y = 80.0f + 100.0f *((float)i/7) + 10.0f *((float)i/7);
+ colorsRecs[i].y = 80.0f + 100.0f *((int)i/7) + 10.0f *((float)i/7);
49
colorsRecs[i].width = 100.0f;
50
colorsRecs[i].height = 100.0f;
51
}
0 commit comments