summaryrefslogtreecommitdiffstats
path: root/src/sdl_image-test.c
blob: d0fb402fe459db5fa00d44221da26700f45ec6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}