changeset 2188:9d06e177eeb1 trunk

[svn] - Fixed voiceprint scroll bug for stopped playback - Made doublesize voiceprint look like it should
author marvin
date Wed, 20 Dec 2006 13:05:57 -0800
parents 3a5a895ce665
children 52330b15c648
files ChangeLog audacious/widgets/vis.c
diffstat 2 files changed, 18 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 20 07:57:56 2006 -0800
+++ b/ChangeLog	Wed Dec 20 13:05:57 2006 -0800
@@ -1,3 +1,12 @@
+2006-12-20 15:57:56 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3379]
+  - allow changing the colourtheme from preferences
+  
+  trunk/audacious/glade/prefswin.glade |  266 +++++++++++++++++++++++++++++++++++
+  trunk/audacious/prefswin.c           |  100 +++++++++++++
+  2 files changed, 366 insertions(+)
+
+
 2006-12-20 15:09:22 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3377]
   - add ability to colourtheme the UI
--- a/audacious/widgets/vis.c	Wed Dec 20 07:57:56 2006 -0800
+++ b/audacious/widgets/vis.c	Wed Dec 20 13:05:57 2006 -0800
@@ -186,7 +186,7 @@
             }
         }
 	else if (cfg.vis_type == VIS_VOICEPRINT) {
-	  if(!bmp_playback_get_paused()){/*Don't scroll when it's paused*/
+	  if(!bmp_playback_get_paused() && bmp_playback_get_playing()){/*Don't scroll when it's paused or stopped*/
 	    for (y = 0; y < 16; y ++) 
 	      for (x = 74; x > 0; x--)
 		vs_data_ext[x + (y * 76)] = vs_data_ext[x-1+(y*76)];
@@ -333,23 +333,22 @@
             }
         }
 	else if (cfg.vis_type == VIS_VOICEPRINT) {
-	  if(!bmp_playback_get_paused()){/*Don't scroll when it's paused*/
-	    for (y = 0; y < 15; y ++) 
+	  if(!bmp_playback_get_paused() && bmp_playback_get_playing()){/*Don't scroll when it's paused or stopped*/
+	    for (y = 0; y < 16; y ++) 
 	      for (x = 74; x > 0; x--)
 		vs_data_ext[x + y * 76] = vs_data_ext[x - 1 + y * 76];
 	    for(y=0;y<16;y++)
 	      vs_data_ext[y * 76] = vis->vs_data[y];
 	  }
-	  for (y = 0; y < 15; y ++) {
+	  for (y = 0; y < 16; y ++) {
             for (x = 74; x > 0; x--)
 	      {
 		ptr = rgb_data + (x << 1) + y * 304;
-		*ptr = vs_data_ext[x - 1 + y * 76];
-		*(ptr+1) = vs_data_ext[x - 1 + y * 76];
-		//FIXME. Currently only every other line is shown in
-		//doublesize mode.
-		//*(ptr-304) = vs_data_ext[x + y * 76];
-		//*(ptr+1+304) = vs_data_ext[x - 1 + y * 76];
+		/*draw a 2x2 area with the same data*/
+		*ptr = vs_data_ext[x + y * 76];
+		*(ptr + 1) = vs_data_ext[x + y * 76];
+		*(ptr + 152) = vs_data_ext[x + y * 76];
+		*(ptr + 153) = vs_data_ext[x + y * 76];
 	      }
 	  }
 	}