- [FIX] cls() no pillava el color de la subpaleta
- [FIX] cosa rara al modificar noms de variables
This commit is contained in:
4
mini.cpp
4
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) {
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user