Fix copy-and-paste error

This commit is contained in:
Justin Ethier 2016-04-19 22:28:05 -04:00
parent 32e31a0388
commit 74d3d3dc20

View file

@ -102,7 +102,7 @@ void bitmap_fill(RGBBitmap *img, int r, int g, int b)
// TODO: could use pointers directly or even memcpy // TODO: could use pointers directly or even memcpy
// to make this faster // to make this faster
for (y = 0; y < img->height; y++) { for (y = 0; y < img->height; y++) {
for (x = 0; x < img->height; x++) { for (x = 0; x < img->width; x++) {
bitmap_set(img, x, y, r, g, b); bitmap_set(img, x, y, r, g, b);
} }
} }