Commit 0a9a3e4b authored by Stefan Kost's avatar Stefan Kost

examples: no need to set the color for each frq-band

parent f1fe0e71
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment