Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 2, 2008
1 parent d885b12 commit 4226a9c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/testalpha.c
Expand Up @@ -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[])
{
Expand Down

0 comments on commit 4226a9c

Please sign in to comment.