From 6cc1c73d2baa95c46edc04f57cbe9ed690dc2f21 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 15 Mar 2004 19:32:27 +0000 Subject: don't mix tabs and spaces Original commit message from CVS: don't mix tabs and spaces --- gst/monoscope/monoscope.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'gst/monoscope/monoscope.c') diff --git a/gst/monoscope/monoscope.c b/gst/monoscope/monoscope.c index 20a68099..356237e9 100644 --- a/gst/monoscope/monoscope.c +++ b/gst/monoscope/monoscope.c @@ -87,7 +87,7 @@ monoscope_update (struct monoscope_state * stateptr, gint16 data[512]) } stateptr->avgMax += max - (stateptr->avgMax >> 8); if (stateptr->avgMax < max) - stateptr->avgMax = max; /* Avoid overflow */ + stateptr->avgMax = max; /* Avoid overflow */ factor = 0x7fffffff / stateptr->avgMax; /* Keep the scaling sensible. */ if (factor > (1 << 18)) @@ -106,15 +106,15 @@ monoscope_update (struct monoscope_state * stateptr, gint16 data[512]) if ((bar > 0) && (bar < (256 * 128))) { loc = stateptr->display + bar; if (foo < 0) { - for (h = 0; h <= (-foo); h++) { - *loc = stateptr->colors[h]; - loc += 256; - } + for (h = 0; h <= (-foo); h++) { + *loc = stateptr->colors[h]; + loc += 256; + } } else { - for (h = 0; h <= foo; h++) { - *loc = stateptr->colors[h]; - loc -= 256; - } + for (h = 0; h <= foo; h++) { + *loc = stateptr->colors[h]; + loc -= 256; + } } } } @@ -124,7 +124,7 @@ monoscope_update (struct monoscope_state * stateptr, gint16 data[512]) for (h = 0; h < 256; h += 2) { stateptr->display[(i << 8) + h] = stateptr->colors[63]; if (i == 64) - stateptr->display[(i << 8) + h + 1] = stateptr->colors[63]; + stateptr->display[(i << 8) + h + 1] = stateptr->colors[63]; } } for (i = 16; i < 256; i += 16) { -- cgit