summaryrefslogtreecommitdiffstats
path: root/src/sdl-test.c
blob: 7691fe8635c4da4275e9770d1d2426e91b333c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This file is part of mingw-cross-env.       */
/* See doc/index.html for further information. */

#include <SDL.h>

int main(int argc, char *argv[])
{
    SDL_Surface *screen;

    (void)argc;
    (void)argv;

    if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1;

    screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE);

    SDL_Quit();
    return 0;
}