mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
examples: no need to set the color for each frq-band
This commit is contained in:
parent
f1fe0e7157
commit
0a9a3e4b26
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue