test/testalpha.c
changeset 2822 cf271ff76061
parent 2806 938aa47f903a
child 3585 f8816ffa210b
     1.1 --- a/test/testalpha.c	Tue Dec 02 16:09:58 2008 +0000
     1.2 +++ b/test/testalpha.c	Tue Dec 02 16:10:21 2008 +0000
     1.3 @@ -328,23 +328,6 @@
     1.4      SDL_UpdateRects(screen, 2, updates);
     1.5  }
     1.6  
     1.7 -void
     1.8 -WarpSprite(SDL_Surface * screen, int x, int y)
     1.9 -{
    1.10 -    SDL_Rect updates[2];
    1.11 -
    1.12 -    /* Erase, move, Draw, update */
    1.13 -    updates[0] = position;
    1.14 -    SDL_BlitSurface(backing, NULL, screen, &updates[0]);
    1.15 -    position.x = x - sprite->w / 2;     /* Center about X */
    1.16 -    position.y = y - sprite->h / 2;     /* Center about Y */
    1.17 -    updates[1] = position;
    1.18 -    SDL_BlitSurface(screen, &updates[1], backing, NULL);
    1.19 -    updates[1] = position;
    1.20 -    SDL_BlitSurface(sprite, NULL, screen, &updates[1]);
    1.21 -    SDL_UpdateRects(screen, 2, updates);
    1.22 -}
    1.23 -
    1.24  int
    1.25  main(int argc, char *argv[])
    1.26  {