summaryrefslogtreecommitdiff
path: root/games/anagramarama/files/patch-src-ag.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-13 13:59:44 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-13 13:59:44 +0000
commit319b5d5fda6e9394fdc7b0b09121bc8710c31276 (patch)
tree83a959bf4aa7340af0a4ef72a8b5a34481e3f8ab /games/anagramarama/files/patch-src-ag.c
parentUse linux_dri or nvidia-driver rather than linux_mesa3. (diff)
Anagramarama - a FREE* word game for Linux, Windows and BeOS.
The aim is to find as many words as possible in the time available. Get the longest word and you'll advance to the next level. PR: ports/83221 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Notes
Notes: svn path=/head/; revision=139084
Diffstat (limited to 'games/anagramarama/files/patch-src-ag.c')
-rw-r--r--games/anagramarama/files/patch-src-ag.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/games/anagramarama/files/patch-src-ag.c b/games/anagramarama/files/patch-src-ag.c
new file mode 100644
index 000000000000..842f724c6274
--- /dev/null
+++ b/games/anagramarama/files/patch-src-ag.c
@@ -0,0 +1,28 @@
+--- src/ag.c.orig Wed Jul 13 15:52:56 2005
++++ src/ag.c Wed Jul 13 15:54:22 2005
+@@ -1723,6 +1723,12 @@
+ SDL_Surface *screen;
+ struct sprite* letters = NULL;
+ //pthread_t audio;
++ // buffer sounds
++ int audio_rate = MIX_DEFAULT_FREQUENCY;
++ Uint16 audio_format = AUDIO_S16;
++ int audio_channels = 1;
++ int audio_buffers = 256;
++
+
+ // seed the random generator
+ srand(time(NULL));
+@@ -1742,12 +1748,6 @@
+ }
+
+ SDL_WM_SetCaption("Anagramarama", "ANAGRAMARAMA");
+-
+- // buffer sounds
+- int audio_rate = MIX_DEFAULT_FREQUENCY;
+- Uint16 audio_format = AUDIO_S16;
+- int audio_channels = 1;
+- int audio_buffers = 256;
+
+ if(Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers)){
+ printf("unable to open audio!\n");