- [CHG] surface.cls(color) ompli del color especificat tota la surface

This commit is contained in:
2025-02-19 12:45:13 +01:00
parent 9c3baebc1e
commit ecb493f9c8

View File

@@ -499,12 +499,13 @@ void simple_pset(int x, int y, uint8_t color) {
void cls(uint8_t color) {
const uint8_t col = ds::draw_palette[color];
for (int y=ds::clip[1]; y<=ds::clip[3];++y) {
/*for (int y=ds::clip[1]; y<=ds::clip[3];++y) {
for (int x=ds::clip[0]; x<=ds::clip[2];++x) {
simple_pset(x,y,col);
}
}
//SDL_memset(dest_surface->p, color, dest_surface->size);
}*/
SDL_memset(dest_surface->p, color, dest_surface->size);
}
void color(uint8_t color) {