diff options
author | Benjamin Otte <otte@gnome.org> | 2002-04-06 03:40:14 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2002-04-06 03:40:14 +0000 |
commit | ffd4b556cc0e94ccdc92b6fa47a0d1b93ab6a26b (patch) | |
tree | 84480c8c8541ea0aafc2c7982e44bd88b1d73afc /gst/goom/goom_core.c | |
parent | 30cb4afbf65b8b6b3285cca41ffe81a7f1c78754 (diff) |
fixed first bunch of compiler warnings
Original commit message from CVS:
fixed first bunch of compiler warnings
Diffstat (limited to 'gst/goom/goom_core.c')
-rw-r--r-- | gst/goom/goom_core.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gst/goom/goom_core.c b/gst/goom/goom_core.c index 5f243b40..ab2fea69 100644 --- a/gst/goom/goom_core.c +++ b/gst/goom/goom_core.c @@ -245,18 +245,22 @@ guint32 * goom_update (gint16 data [2][512]) switch (vtmp = (iRAND (27))) { case 0: - zfd.vPlaneEffect = iRAND(3) - iRAND(3); - zfd.hPlaneEffect = iRAND(3) - iRAND(3); + zfd.vPlaneEffect = iRAND(3); + zfd.vPlaneEffect -= iRAND(3); + zfd.hPlaneEffect = iRAND(3); + zfd.hPlaneEffect -= iRAND(3); break; case 3: zfd.vPlaneEffect = 0 ; - zfd.hPlaneEffect = iRAND(8) - iRAND(8); + zfd.hPlaneEffect = iRAND(8); + zfd.hPlaneEffect -= iRAND(8); break; case 4: case 5: case 6: case 7: - zfd.vPlaneEffect = iRAND(5) - iRAND (5); + zfd.vPlaneEffect = iRAND(5); + zfd.vPlaneEffect -= iRAND(5); zfd.hPlaneEffect = - zfd.vPlaneEffect; break; case 8: @@ -269,7 +273,8 @@ guint32 * goom_update (gint16 data [2][512]) break; case 13: zfd.hPlaneEffect = 0; - zfd.vPlaneEffect = iRAND(10) - iRAND(10); + zfd.vPlaneEffect = iRAND(10); + zfd.vPlaneEffect -= iRAND(10); break; default: if (vtmp < 10) |