Mercurial > sdl-ios-xcode
changeset 2797:c81150fedf6f
Map to black, not necessarily 0
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Nov 2008 17:44:28 +0000 |
parents | 9f6601537163 |
children | 5f3831f1c3ea |
files | test/testalpha.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testalpha.c Fri Nov 28 17:42:40 2008 +0000 +++ b/test/testalpha.c Fri Nov 28 17:44:28 2008 +0000 @@ -504,7 +504,7 @@ 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;