Mercurial > audlegacy
changeset 2190:d618044d35e4 trunk
[svn] - Fix the number of analyzer bars drawn in shaded mode.
- Fix doublesize for analyzer in shaded mode.
author | nhjm449 |
---|---|
date | Fri, 22 Dec 2006 00:17:31 -0800 |
parents | 52330b15c648 |
children | 13b7c5f26332 |
files | ChangeLog audacious/mainwin.c audacious/visualization.c audacious/widgets/svis.c |
diffstat | 4 files changed, 23 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Dec 20 13:42:30 2006 -0800 +++ b/ChangeLog Fri Dec 22 00:17:31 2006 -0800 @@ -1,3 +1,11 @@ +2006-12-20 21:42:30 +0000 William Pitcock <nenolod@nenolod.net> + revision [3383] + - update credits + + trunk/audacious/credits.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + + 2006-12-20 21:05:57 +0000 Troels Bang Jensen <marvin@fnuck.dk> revision [3381] - Fixed voiceprint scroll bug for stopped playback
--- a/audacious/mainwin.c Wed Dec 20 13:42:30 2006 -0800 +++ b/audacious/mainwin.c Fri Dec 22 00:17:31 2006 -0800 @@ -675,7 +675,7 @@ else vis_clear(active_vis); } - if (mode == VIS_ANALYZER || mode == VIS_SCOPE) { + if (mode == VIS_ANALYZER || mode == VIS_SCOPE || mode == VIS_VOICEPRINT) { vis_clear_data(active_vis); svis_clear_data(mainwin_svis); }
--- a/audacious/visualization.c Wed Dec 20 13:42:30 2006 -0800 +++ b/audacious/visualization.c Fri Dec 22 00:17:31 2006 -0800 @@ -357,11 +357,21 @@ memset(intern_vis_data, 0, 75); if (cfg.analyzer_type == ANALYZER_BARS) { - max = 19; + if (cfg.player_shaded) { + max = 13; + } + else { + max = 19; + } xscale = short_xscale; } else { - max = 75; + if (cfg.player_shaded) { + max = 37; + } + else { + max = 75; + } xscale = long_xscale; }
--- a/audacious/widgets/svis.c Wed Dec 20 13:42:30 2006 -0800 +++ b/audacious/widgets/svis.c Fri Dec 22 00:17:31 2006 -0800 @@ -193,8 +193,9 @@ for(x=0;x< SVIS_WIDTH; x++){ if(svis->vs_data[x] > y << 1) { - ptr = rgb_data + x * 2 + (SVIS_HEIGHT - y) * SVIS_WIDTH * 2; + ptr = rgb_data + x * 6 + (SVIS_HEIGHT * 2 - y * 2) * SVIS_WIDTH * 2; DRAW_DS_PIXEL(ptr, 23); + DRAW_DS_PIXEL(ptr + 2, 23); } } }