1 diff -ur goom.orig/configure.in goom/configure.in
2 --- goom.orig/configure.in 2007-09-20 17:16:48.000000000 +0200
3 +++ goom/configure.in 2007-09-20 17:17:36.000000000 +0200
8 AM_INIT_AUTOMAKE(SDL_Goom, 2k4)
10 ACLOCAL="$ACLOCAL -I m4"
13 dnl *** check for xmms ***
15 -AM_PATH_XMMS2(0.9.5.1, HAVE_XMMS="yes", HAVE_XMMS="no")
17 AM_CONDITIONAL(HAVE_XMMS,test "x$HAVE_XMMS" = "xyes")
22 -if test "x$HAVE_XMMS" = "xyes"; then
23 - AM_PATH_SDL2(1.2.0, HAVE_SDL="yes", HAVE_SDL="no"])
28 AM_CONDITIONAL(HAVE_SDL,test "x$HAVE_SDL" = "xyes")
32 AM_CONDITIONAL(MACTARGET,test "x$MACTARGET" = "xyes")
35 -AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))
38 -AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread")
40 -if test "x$PTHREAD_LIBS" = xerror; then
41 - AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads")
44 -if test "x$PTHREAD_LIBS" = xerror; then
45 - AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r")
48 -if test "x$PTHREAD_LIBS" = xerror; then
49 - AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
52 -AC_SUBST(PTHREAD_LIBS)
53 +dnl AC_SUBST(PTHREAD_LIBS)
56 dnl echo -n checking for nasm...
57 diff -ur goom2k4-0.orig/src/filters.c goom2k4-0/src/filters.c
58 --- goom.orig/src/filters.c 2005-02-07 14:46:41.000000000 +0100
59 +++ goom/src/filters.c 2007-09-20 17:17:11.000000000 +0200
64 - vx += (((float)random()) / ((float)RAND_MAX) - 0.5f) / 50.0f;
65 - vy += (((float)random()) / ((float)RAND_MAX) - 0.5f) / 50.0f;
66 + vx += (((float)rand()) / ((float)RAND_MAX) - 0.5f) / 50.0f;
67 + vy += (((float)rand()) / ((float)RAND_MAX) - 0.5f) / 50.0f;
71 diff -ur goom/src/goom_core.c goom/src/goom_core.c
72 --- goom/src/goom_core.c 2005-02-07 14:46:41.000000000 +0100
73 +++ goom/src/goom_core.c 2007-09-20 17:17:11.000000000 +0200
75 static void init_buffers(PluginInfo *goomInfo, int buffsize)
77 goomInfo->pixel = (guint32 *) malloc (buffsize * sizeof (guint32) + 128);
78 - bzero (goomInfo->pixel, buffsize * sizeof (guint32) + 128);
79 + memset (goomInfo->pixel, 0, buffsize * sizeof (guint32) + 128);
80 goomInfo->back = (guint32 *) malloc (buffsize * sizeof (guint32) + 128);
81 - bzero (goomInfo->back, buffsize * sizeof (guint32) + 128);
82 + memset (goomInfo->back, 0, buffsize * sizeof (guint32) + 128);
83 goomInfo->conv = (Pixel *) malloc (buffsize * sizeof (guint32) + 128);
84 - bzero (goomInfo->conv, buffsize * sizeof (guint32) + 128);
85 + memset (goomInfo->conv, 0, buffsize * sizeof (guint32) + 128);
87 goomInfo->outputBuf = goomInfo->conv;