diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-05-29 06:21:37 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-05-29 06:21:37 +0000 |
commit | 17b55d48c76a52e0f5dda46a426198cb267d3af0 (patch) | |
tree | 8fe452e9e11cfa7d8d00fb0225d32efdb2c8dc3d /games/gltron | |
parent | 8be858142e16d109913aa96d5cfd87467807555a (diff) | |
download | FreeBSD-ports-17b55d48c76a52e0f5dda46a426198cb267d3af0.zip FreeBSD-ports-17b55d48c76a52e0f5dda46a426198cb267d3af0.tar.gz |
Do not try to initialise SDL_AUDIO if NO_SOUND is given. This should make
gltron actually usable enen on systems w/o sound hardware.
Diffstat (limited to 'games/gltron')
-rw-r--r-- | games/gltron/files/patch-af | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games/gltron/files/patch-af b/games/gltron/files/patch-af new file mode 100644 index 0000000..acc4128 --- /dev/null +++ b/games/gltron/files/patch-af @@ -0,0 +1,15 @@ +--- system_sdl.c 2000/05/26 09:21:17 1.1 ++++ system_sdl.c 2000/05/26 09:27:15 +@@ -17,7 +17,11 @@ + } + + void SystemInit(int *argc, char *argv[]) { +- if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0 ){ ++ Uint32 sflag = 0; ++#ifdef SOUND ++ sflag = SDL_INIT_AUDIO; ++#endif ++ if(SDL_Init(SDL_INIT_VIDEO | sflag) < 0 ){ + fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); + exit(1); + } |