diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-02-14 18:33:14 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-02-14 18:33:14 (GMT) |
commit | e83815cdb431ba2d24698e913bf4dad947f6bc8d (patch) | |
tree | a9f0334f3a38dbc45b68c4e843f0698bd5e06fc7 /src/sdl_image-test.c | |
parent | 2c08f6cec5c3892bcbd0ebe15fe61aa497a7547c (diff) | |
download | mxe-e83815cdb431ba2d24698e913bf4dad947f6bc8d.zip mxe-e83815cdb431ba2d24698e913bf4dad947f6bc8d.tar.gz mxe-e83815cdb431ba2d24698e913bf4dad947f6bc8d.tar.bz2 |
bugfix and test program for package sdl_image
Diffstat (limited to 'src/sdl_image-test.c')
-rw-r--r-- | src/sdl_image-test.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sdl_image-test.c b/src/sdl_image-test.c new file mode 100644 index 0000000..ca76985 --- /dev/null +++ b/src/sdl_image-test.c @@ -0,0 +1,22 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <SDL.h> +#include <SDL_image.h> + +int main(int argc, char* argv[]) +{ + SDL_Surface *image; + SDL_Surface *screen; + + (void)argc; + (void)argv; + + if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1; + + image = IMG_Load("test.png"); + screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE); + + SDL_Quit(); + return 0; +} |