diff options
author | Jesús Corrius <jesus@softcatala.org> | 2008-04-25 12:52:44 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2008-04-25 12:52:44 +0000 |
commit | 883d93df58691c941822e2ca9077a7c23fb74492 (patch) | |
tree | 43f5a8eb32aeea836d77bf40383c6af702d7b59a /gst/goom/filters.c | |
parent | bd8c40c014a19e877efcb4feea1da52015769b89 (diff) |
gst/goom/: Fix build with mingw32: use rand() instead of random() and replace bzero() with memset(). Fixes #529692.
Original commit message from CVS:
Patch by: Jesús Corrius <jesus at softcatala org>
* gst/goom/filters.c: (zoomVector):
* gst/goom/goom_core.c: (init_buffers):
Fix build with mingw32: use rand() instead of random() and
replace bzero() with memset(). Fixes #529692.
Diffstat (limited to 'gst/goom/filters.c')
-rw-r--r-- | gst/goom/filters.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/goom/filters.c b/gst/goom/filters.c index 3014c352..9bb97c94 100644 --- a/gst/goom/filters.c +++ b/gst/goom/filters.c @@ -214,8 +214,8 @@ zoomVector (ZoomFilterFXWrapperData * data, float X, float Y) /* Noise */ if (data->noisify) { - vx += (((float) random ()) / ((float) RAND_MAX) - 0.5f) / 50.0f; - vy += (((float) random ()) / ((float) RAND_MAX) - 0.5f) / 50.0f; + vx += (((float) rand ()) / ((float) RAND_MAX) - 0.5f) / 50.0f; + vy += (((float) rand ()) / ((float) RAND_MAX) - 0.5f) / 50.0f; } /* Hypercos */ |