Mercurial > mxe-octave
comparison src/sdl-test.c @ 657:b1d03b91eb1e
test program for package sdl
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Fri, 22 Jan 2010 03:53:37 +0100 |
parents | |
children | 29f1ba4559ae |
comparison
equal
deleted
inserted
replaced
656:73ebc5c43231 | 657:b1d03b91eb1e |
---|---|
1 /* This file is part of mingw-cross-env. */ | |
2 /* See doc/index.html or doc/README for further information. */ | |
3 | |
4 #include <SDL.h> | |
5 | |
6 int main(int argc, char* argv[]) | |
7 { | |
8 SDL_Surface *screen; | |
9 | |
10 (void)argc; | |
11 (void)argv; | |
12 | |
13 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1; | |
14 | |
15 screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE); | |
16 | |
17 SDL_Quit(); | |
18 return 0; | |
19 } |