Mercurial > sdl-ios-xcode
comparison test/testalpha.c @ 2797:c81150fedf6f
Map to black, not necessarily 0
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Nov 2008 17:44:28 +0000 |
parents | 44e49d3fa6cf |
children | bbf3aac2672a |
comparison
equal
deleted
inserted
replaced
2796:9f6601537163 | 2797:c81150fedf6f |
---|---|
502 | 502 |
503 area.x = event.button.x - 16; | 503 area.x = event.button.x - 16; |
504 area.y = event.button.y - 16; | 504 area.y = event.button.y - 16; |
505 area.w = 32; | 505 area.w = 32; |
506 area.h = 32; | 506 area.h = 32; |
507 SDL_FillRect(screen, &area, 0); | 507 SDL_FillRect(screen, &area, SDL_MapRGB(screen->format, 0, 0, 0)); |
508 SDL_UpdateRects(screen, 1, &area); | 508 SDL_UpdateRects(screen, 1, &area); |
509 } | 509 } |
510 break; | 510 break; |
511 case SDL_KEYDOWN: | 511 case SDL_KEYDOWN: |
512 if (event.key.keysym.sym == SDLK_ESCAPE) { | 512 if (event.key.keysym.sym == SDLK_ESCAPE) { |