- [FIX] cls() no pillava el color de la subpaleta

- [FIX] cosa rara al modificar noms de variables
This commit is contained in:
2025-02-19 13:38:19 +01:00
parent 2f0817d20c
commit 7abc8648a1

View File

@@ -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) { 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) { void rectfill(int x, int y, int w, int h) {
int x1 = w-x+1; int x1 = w-x+1;
int y1 = h-y+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) { void rectfill(int x, int y, int w, int h, uint8_t color) {