Mercurial > mxe-octave
annotate src/sdl-test.c @ 4733:1ecb1e67eaa1
* src/src-msys-dos2unix.mk: update checksum
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 09 Jun 2018 10:13:46 -0400 |
parents | 99516e73b368 |
children |
rev | line source |
---|---|
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
1 /* |
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
2 * This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2351
diff
changeset
|
3 * See index.html for further information. |
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
4 */ |
657
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 #include <SDL.h> |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 |
946
35a9e556c82c
improved coding style of test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
730
diff
changeset
|
8 int main(int argc, char *argv[]) |
657
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 SDL_Surface *screen; |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 (void)argc; |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 (void)argv; |
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 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1; |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 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
|
18 (void)screen; |
657
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 SDL_Quit(); |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 return 0; |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 } |