annotate src/sdl-test.c @ 7225:48e5a8cd5086 default tip @

Qt6: Update to version 6.7.1 * qt6-qtbase.mk: Update version and checksum. Remove no longer recognized configure switch. * qt6-qtbase-1-fixes.patch: Adjust patch for reorganized CMake files. Remove hunk that is no longer needed. * qt6-qtbase-2-6.7.0-opengl-header.patch: Add new patch. * dist-files.mk: Add new file to list. * qt6-qt5compat.mk, qt6-qtimageformats.mk, qt6-qtsvg.mk, qt6-qttools.mk, qt6-qttranslations.mk: Update checksum.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 31 May 2024 10:58:54 +0200
parents 99516e73b368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 }