From 7abc8648a1059e465710a5826078aeafca761124 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 19 Feb 2025 13:38:19 +0100 Subject: [PATCH] - [FIX] cls() no pillava el color de la subpaleta - [FIX] cosa rara al modificar noms de variables --- mini.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {