diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2015-02-16 14:31:05 +0000 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-02-16 14:31:05 +0000 |
commit | ea1d67abe3668cfb18593b75faee066891418099 (patch) | |
tree | 52d36b045090a33737a840d512a0268a988ff261 | |
parent | 4af5a2b7600692db2daf1301bc6feeb94ccdff65 (diff) |
goom2k1: use fractional part of float division
-rw-r--r-- | gst/goom2k1/lines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/goom2k1/lines.c b/gst/goom2k1/lines.c index bb6348f11..804b68e45 100644 --- a/gst/goom2k1/lines.c +++ b/gst/goom2k1/lines.c @@ -88,8 +88,8 @@ goom_lines (GoomData * goomdata, gint16 data[2][512], unsigned int ID, { float z; unsigned int monX = resolx / 2; - float monY = resoly / 4; - float monY2 = resoly / 2; + float monY = (float) resoly / 4; + float monY2 = (float) resoly / 2; for (z = 0; z < 6.2832f; z += 1.0f / monY) { /* float offset1 = 128+data[1][(unsigned int)(z*81.33f)])/200000; */ |