Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Map to black, not necessarily 0
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 28, 2008
1 parent f3acc31 commit 1cdc4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testalpha.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1cdc4d5

Please sign in to comment.