remove unnecessary checks

This commit is contained in:
opfez 2021-09-27 10:10:28 +02:00
parent a88c2fad2a
commit 8ae094dd98
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -120,7 +120,7 @@ render(sdl_state_t state)
void
plot_rgb(rgb_t canvas[], uint16_t x, uint16_t y, rgb_t colour)
{
if (x < W && y < H && x >= 0 && y >= 0)
if (x < W && y < H)
canvas[x + y * W] = colour;
}