mirror of
https://github.com/joel16/SDL2.git
synced 2024-12-15 15:29:46 +00:00
Map to black, not necessarily 0
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403258
This commit is contained in:
parent
30d4fc124c
commit
843bc58619
@ -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