From 964848418796718df5b55bcb533a6299f9696465 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 2 Dec 2008 16:10:21 +0000 Subject: [PATCH] Removed unused function --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403283 --- test/testalpha.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/testalpha.c b/test/testalpha.c index aa43d7e99..e48e0b227 100644 --- a/test/testalpha.c +++ b/test/testalpha.c @@ -328,23 +328,6 @@ MoveSprite(SDL_Surface * screen, SDL_Surface * light) SDL_UpdateRects(screen, 2, updates); } -void -WarpSprite(SDL_Surface * screen, int x, int y) -{ - SDL_Rect updates[2]; - - /* Erase, move, Draw, update */ - updates[0] = position; - SDL_BlitSurface(backing, NULL, screen, &updates[0]); - position.x = x - sprite->w / 2; /* Center about X */ - position.y = y - sprite->h / 2; /* Center about Y */ - updates[1] = position; - SDL_BlitSurface(screen, &updates[1], backing, NULL); - updates[1] = position; - SDL_BlitSurface(sprite, NULL, screen, &updates[1]); - SDL_UpdateRects(screen, 2, updates); -} - int main(int argc, char *argv[]) {