Skip to content

Commit b210d16

Browse files
authored
fix y-offset casting (#5556)
1 parent 4d6ef19 commit b210d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shapes/shapes_colors_palette.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main(void)
4545
for (int i = 0; i < MAX_COLORS_COUNT; i++)
4646
{
4747
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);
48+
colorsRecs[i].y = 80.0f + 100.0f *((int)i/7) + 10.0f *((float)i/7);
4949
colorsRecs[i].width = 100.0f;
5050
colorsRecs[i].height = 100.0f;
5151
}

0 commit comments

Comments
 (0)