changeset 2822:cf271ff76061

Removed unused function
author Sam Lantinga <slouken@libsdl.org>
date Tue, 02 Dec 2008 16:10:21 +0000
parents c4eccbd21d16
children 15e1dd1fff78
files test/testalpha.c
diffstat 1 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/test/testalpha.c	Tue Dec 02 16:09:58 2008 +0000
+++ b/test/testalpha.c	Tue Dec 02 16:10:21 2008 +0000
@@ -328,23 +328,6 @@
     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[])
 {