Mercurial > sdl-ios-xcode
comparison test/testalpha.c @ 2822:cf271ff76061
Removed unused function
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 02 Dec 2008 16:10:21 +0000 |
parents | 938aa47f903a |
children | f8816ffa210b |
comparison
equal
deleted
inserted
replaced
2821:c4eccbd21d16 | 2822:cf271ff76061 |
---|---|
323 /* Blit the sprite onto the screen */ | 323 /* Blit the sprite onto the screen */ |
324 updates[1] = position; | 324 updates[1] = position; |
325 SDL_BlitSurface(sprite, NULL, screen, &updates[1]); | 325 SDL_BlitSurface(sprite, NULL, screen, &updates[1]); |
326 | 326 |
327 /* Make it so! */ | 327 /* Make it so! */ |
328 SDL_UpdateRects(screen, 2, updates); | |
329 } | |
330 | |
331 void | |
332 WarpSprite(SDL_Surface * screen, int x, int y) | |
333 { | |
334 SDL_Rect updates[2]; | |
335 | |
336 /* Erase, move, Draw, update */ | |
337 updates[0] = position; | |
338 SDL_BlitSurface(backing, NULL, screen, &updates[0]); | |
339 position.x = x - sprite->w / 2; /* Center about X */ | |
340 position.y = y - sprite->h / 2; /* Center about Y */ | |
341 updates[1] = position; | |
342 SDL_BlitSurface(screen, &updates[1], backing, NULL); | |
343 updates[1] = position; | |
344 SDL_BlitSurface(sprite, NULL, screen, &updates[1]); | |
345 SDL_UpdateRects(screen, 2, updates); | 328 SDL_UpdateRects(screen, 2, updates); |
346 } | 329 } |
347 | 330 |
348 int | 331 int |
349 main(int argc, char *argv[]) | 332 main(int argc, char *argv[]) |