annotate src/sdl-test.c @ 2333:f653602a0500

Rebrand to new project name MXE
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 28 Mar 2012 15:46:58 +0200
parents 4e48476ea587
children 8a6c466753e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1707
diff changeset
1 /* This file is part of MXE. */
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 657
diff changeset
2 /* See doc/index.html for further information. */
657
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 #include <SDL.h>
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5
946
35a9e556c82c improved coding style of test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 730
diff changeset
6 int main(int argc, char *argv[])
657
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 {
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 SDL_Surface *screen;
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 (void)argc;
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 (void)argv;
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1;
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE);
1707
4e48476ea587 fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents: 946
diff changeset
16 (void)screen;
657
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 SDL_Quit();
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 return 0;
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 }