Map to black, not necessarily 0

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403258
This commit is contained in:
Sam Lantinga 2008-11-28 17:44:28 +00:00
parent 30d4fc124c
commit 843bc58619

View File

@ -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;