mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
Map to black, not necessarily 0
This commit is contained in:
parent
8164eb0e82
commit
6692a9cb93
|
|
@ -504,7 +504,7 @@ main(int argc, char *argv[])
|
|||
area.y = event.button.y - 16;
|
||||
area.w = 32;
|
||||
area.h = 32;
|
||||
SDL_FillRect(screen, &area, 0);
|
||||
SDL_FillRect(screen, &area, SDL_MapRGB(screen->format, 0, 0, 0));
|
||||
SDL_UpdateRects(screen, 1, &area);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user