diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-22 10:40:06 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-22 10:40:06 -0700 |
commit | 406c106b0cd88375f5f7f9ccdc9feea6e8f834c6 (patch) | |
tree | 60e909ad39e6183e87b6f7d01518538a9d43defd /tests/sdl_image.c | |
parent | 809724a0c49f24d672e17f24fd90bdab9d479586 (diff) |
save the canvas in preloadedImages, and do canvas blits in IMG_Load etc.
Diffstat (limited to 'tests/sdl_image.c')
-rw-r--r-- | tests/sdl_image.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/sdl_image.c b/tests/sdl_image.c index 3f55374f..89bf1122 100644 --- a/tests/sdl_image.c +++ b/tests/sdl_image.c @@ -7,8 +7,6 @@ int main() { SDL_Init(SDL_INIT_VIDEO); SDL_Surface *screen = SDL_SetVideoMode(600, 450, 32, SDL_SWSURFACE); - if (SDL_MUSTLOCK(screen)) SDL_LockSurface(screen); - SDL_Surface *image = IMG_Load("screenshot.jpg"); if (!image) { @@ -18,7 +16,6 @@ int main() { SDL_BlitSurface (image, NULL, screen, NULL); SDL_FreeSurface (image); - if (SDL_MUSTLOCK(screen)) SDL_UnlockSurface(screen); SDL_Flip(screen); printf("you should see an image.\n"); |