Map to black, not necessarily 0
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Nov 2008 17:44:28 +0000
changeset 2797c81150fedf6f
parent 2796 9f6601537163
child 2798 5f3831f1c3ea
Map to black, not necessarily 0
test/testalpha.c
     1.1 --- a/test/testalpha.c	Fri Nov 28 17:42:40 2008 +0000
     1.2 +++ b/test/testalpha.c	Fri Nov 28 17:44:28 2008 +0000
     1.3 @@ -504,7 +504,7 @@
     1.4                      area.y = event.button.y - 16;
     1.5                      area.w = 32;
     1.6                      area.h = 32;
     1.7 -                    SDL_FillRect(screen, &area, 0);
     1.8 +                    SDL_FillRect(screen, &area, SDL_MapRGB(screen->format, 0, 0, 0));
     1.9                      SDL_UpdateRects(screen, 1, &area);
    1.10                  }
    1.11                  break;