diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2008-02-26 10:09:38 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2008-02-26 10:09:38 +0000 |
commit | c34fa140d0c16ce688e42947a8668049ce22cdb7 (patch) | |
tree | a33f768a8cdc09adec4cc4e9a678b781ffa48adb /gst/goom/flying_stars_fx.c | |
parent | c99b95d8cb9f95cd0cec8ad736f139b6029d13c9 (diff) |
configure.ac: Detect and indicate if GCC inline assembly syntax is available.
Original commit message from CVS:
* configure.ac:
Detect and indicate if GCC inline assembly syntax is
available.
* gst/goom/Makefile.am:
* gst/goom/convolve_fx.c:
* gst/goom/flying_stars_fx.c:
* gst/goom/goom_config.h:
* gst/goom/goom_core.c:
* gst/goom/goomsl.c:
* gst/goom/ifs.c:
* gst/goom/mmx.c:
* gst/goom/plugin_info.c:
* gst/goom/xmmx.c:
Fix various GCC-isms, and only build the inline assembly
with compilers that support GCC inline assembly.
Fix a couple of other warnings shown with Forte.
Diffstat (limited to 'gst/goom/flying_stars_fx.c')
-rw-r--r-- | gst/goom/flying_stars_fx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gst/goom/flying_stars_fx.c b/gst/goom/flying_stars_fx.c index c323c7c9..384b54aa 100644 --- a/gst/goom/flying_stars_fx.c +++ b/gst/goom/flying_stars_fx.c @@ -200,8 +200,7 @@ fs_sound_event_occured (VisualFX * _this, PluginInfo * info) FSData *data = (FSData *) _this->fx_data; int i; - int max = - (int) ((1.0f + info->sound.goomPower) * goom_irand (info->gRandom, + int max = (int) ((1.0f + info->sound.goomPower) * goom_irand (info->gRandom, 150)) + 100; float radius = (1.0f + info->sound.goomPower) * (float) (goom_irand (info->gRandom, @@ -332,10 +331,10 @@ VisualFX flying_star_create (void) { VisualFX vfx = { - init:fs_init, - free:fs_free, - apply:fs_apply, - fx_data:0 + fs_init, + fs_free, + fs_apply, + NULL }; return vfx; } |