Map to black, not necessarily 0
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Nov 2008 17:44:28 +0000
changeset 2797 c81150fedf6f
parent 2796 9f6601537163
child 2798 5f3831f1c3ea
Map to black, not necessarily 0
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;