summaryrefslogtreecommitdiff
path: root/test/testspriteminimal.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-01-21 06:21:52 +0000
committerSam Lantinga <slouken@libsdl.org>2010-01-21 06:21:52 +0000
commitab429d0a4deb8484848c4b3863644f6dbf5fcbe9 (patch)
treeb9c8869edeedb417bfb247f1e3c838a905a36c5f /test/testspriteminimal.c
parente0f0f526fe0a43037e37592547ab9a7a54680dd0 (diff)
downloadsdl-ab429d0a4deb8484848c4b3863644f6dbf5fcbe9.tar.gz
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
Diffstat (limited to 'test/testspriteminimal.c')
-rw-r--r--test/testspriteminimal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c
index 2a8749257..72ecb9d6b 100644
--- a/test/testspriteminimal.c
+++ b/test/testspriteminimal.c
@@ -12,7 +12,7 @@
#define NUM_SPRITES 100
#define MAX_SPEED 1
-static SDL_TextureID sprite;
+static SDL_Texture *sprite;
static SDL_Rect positions[NUM_SPRITES];
static SDL_Rect velocities[NUM_SPRITES];
static int sprite_w, sprite_h;
@@ -78,7 +78,7 @@ LoadSprite(char *file)
}
void
-MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
+MoveSprites(SDL_Window * window, SDL_Texture * sprite)
{
int i;
int window_w = WINDOW_WIDTH;
@@ -115,7 +115,7 @@ MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
int
main(int argc, char *argv[])
{
- SDL_WindowID window;
+ SDL_Window *window;
int i, done;
SDL_Event event;