Mercurial > audlegacy
diff src/audacious/ui_skinned_equalizer_graph.c @ 4604:51d82bf6ba63
Use a define (AUD_EQUALIZER_NBANDS) instead of magic value 10 everywhere.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Wed, 04 Jun 2008 22:27:06 +0300 |
| parents | cc6255f8b568 |
| children |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_equalizer_graph.c Wed Jun 04 22:05:50 2008 +0300 +++ b/src/audacious/ui_skinned_equalizer_graph.c Wed Jun 04 22:27:06 2008 +0300 @@ -252,10 +252,10 @@ skin_get_eq_spline_colors(aud_active_skin, cols); - __init_spline(x, cfg.equalizer_bands, 10, yf); + __init_spline(x, cfg.equalizer_bands, AUD_EQUALIZER_NBANDS, yf); for (i = 0; i < 109; i++) { y = 9 - - (gint) ((eval_spline(x, cfg.equalizer_bands, yf, 10, i) * + (gint) ((eval_spline(x, cfg.equalizer_bands, yf, AUD_EQUALIZER_NBANDS, i) * 9.0) / EQUALIZER_MAX_GAIN); if (y < 0) y = 0;
