summaryrefslogtreecommitdiffstats
path: root/src/sdl-test.c
blob: fc83c57a3482fa34ca906d46ad984edd4ec1b68c (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;
}