From: Stefan Kost Date: Mon, 2 Aug 2010 20:15:56 +0000 (+0300) Subject: examples: no need to set the color for each frq-band X-Git-Tag: 1.19.3~509^2~8306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a9a3e4b267ea002dd57dde21316208b1b62f734;p=platform%2Fupstream%2Fgstreamer.git examples: no need to set the color for each frq-band --- diff --git a/tests/examples/spectrum/demo-audiotest.c b/tests/examples/spectrum/demo-audiotest.c index 9e843e3655..a065abba11 100644 --- a/tests/examples/spectrum/demo-audiotest.c +++ b/tests/examples/spectrum/demo-audiotest.c @@ -89,8 +89,8 @@ draw_spectrum (gfloat * data) cairo_set_source_rgb (cr, 0, 0, 0); cairo_rectangle (cr, 0, 0, spect_bands, spect_height); cairo_fill (cr); + cairo_set_source_rgb (cr, 1, 1, 1); for (i = 0; i < spect_bands; i++) { - cairo_set_source_rgb (cr, 1, 1, 1); cairo_rectangle (cr, i, -data[i], 1, spect_height + data[i]); cairo_fill (cr); } diff --git a/tests/examples/spectrum/demo-osssrc.c b/tests/examples/spectrum/demo-osssrc.c index 84ecb2d936..c0951f87f7 100644 --- a/tests/examples/spectrum/demo-osssrc.c +++ b/tests/examples/spectrum/demo-osssrc.c @@ -78,8 +78,8 @@ draw_spectrum (gfloat * data) cairo_set_source_rgb (cr, 0, 0, 0); cairo_rectangle (cr, 0, 0, spect_bands, spect_height); cairo_fill (cr); + cairo_set_source_rgb (cr, 1, 1, 1); for (i = 0; i < spect_bands; i++) { - cairo_set_source_rgb (cr, 1, 1, 1); cairo_rectangle (cr, i, -data[i], 1, spect_height + data[i]); cairo_fill (cr); }