diff --git a/mini.cpp b/mini.cpp index 5b6205a..00c6fa9 100644 --- a/mini.cpp +++ b/mini.cpp @@ -505,7 +505,7 @@ void cls(uint8_t color) { } }*/ - SDL_memset(dest_surface->p, color, dest_surface->size); + SDL_memset(dest_surface->p, col, dest_surface->size); } void color(uint8_t color) { @@ -693,7 +693,7 @@ void rect(int x, int y, int w, int h, uint8_t color) { void rectfill(int x, int y, int w, int h) { int x1 = w-x+1; int y1 = h-y+1; - for (int y=y; y<=y1; ++y) hline(x, y, x1); + for (int i=y; i<=y1; ++i) hline(x, i, x1); } void rectfill(int x, int y, int w, int h, uint8_t color) {