# HG changeset patch # User Sam Lantinga # Date 1227894268 0 # Node ID c81150fedf6f406b12011a7843f66f9cc3e0fe14 # Parent 9f66015371630500daf5724d8b706838818be53f Map to black, not necessarily 0 diff -r 9f6601537163 -r c81150fedf6f test/testalpha.c --- 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;