Skip to content

Commit 5dd4036

Browse files
authored
Fix UI Cellular Automata (#5688)
1 parent cb05ef7 commit 5dd4036

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/textures/textures_cellular_automata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ int main(void)
165165

166166
// If the mouse is on this preset, highlight it
167167
if (mouseInCell == i + 8)
168-
DrawRectangleLinesEx((Rectangle) { 2 + (presetsSizeX + 2.0f)*((float)i/2),
168+
DrawRectangleLinesEx((Rectangle) { 2 + (presetsSizeX + 2.0f)*(i/2),
169169
(presetsSizeY + 2.0f)*(i%2),
170170
presetsSizeX + 4.0f, presetsSizeY + 4.0f }, 3, RED);
171171
}

0 commit comments

Comments
 (0)