changeset 2191:13b7c5f26332 trunk

[svn] - Updated fix for doublesized, shaded analyzer.
author nhjm449
date Fri, 22 Dec 2006 00:32:44 -0800
parents d618044d35e4
children 9f9db9b5c696
files ChangeLog audacious/widgets/svis.c
diffstat 2 files changed, 30 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Dec 22 00:17:31 2006 -0800
+++ b/ChangeLog	Fri Dec 22 00:32:44 2006 -0800
@@ -1,3 +1,14 @@
+2006-12-22 08:17:31 +0000  George Averill <nhjm449@gmail.com>
+  revision [3385]
+  - Fix the number of analyzer bars drawn in shaded mode.
+  - Fix doublesize for analyzer in shaded mode.
+  
+  trunk/audacious/mainwin.c       |    2 +-
+  trunk/audacious/visualization.c |   14 ++++++++++++--
+  trunk/audacious/widgets/svis.c  |    3 ++-
+  3 files changed, 15 insertions(+), 4 deletions(-)
+
+
 2006-12-20 21:42:30 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3383]
   - update credits
--- a/audacious/widgets/svis.c	Fri Dec 22 00:17:31 2006 -0800
+++ b/audacious/widgets/svis.c	Fri Dec 22 00:32:44 2006 -0800
@@ -190,14 +190,25 @@
         memset(rgb_data, 0, SVIS_WIDTH * 2 * SVIS_HEIGHT * 2);
         if (cfg.vis_type == VIS_ANALYZER) {
 	  for(y=0; y < SVIS_HEIGHT; y++){
-	    for(x=0;x< SVIS_WIDTH; x++){
-	      if(svis->vs_data[x] > y << 1)
-		{
-		  ptr = rgb_data + x * 6 + (SVIS_HEIGHT * 2 - y * 2) * SVIS_WIDTH * 2;
-		  DRAW_DS_PIXEL(ptr, 23);
-		  DRAW_DS_PIXEL(ptr + 2, 23);
-		}
-	    }
+            if (cfg.analyzer_type == ANALYZER_BARS){
+              for(x=0;x< SVIS_WIDTH; x++){
+                if(svis->vs_data[x] > y << 1)
+                {
+                  ptr = rgb_data + x * 6 + (SVIS_HEIGHT * 2 - y * 2) * SVIS_WIDTH * 2;
+                  DRAW_DS_PIXEL(ptr, 23);
+                  DRAW_DS_PIXEL(ptr + 2, 23);
+                }
+              }
+            }
+            else{
+              for(x=0;x< SVIS_WIDTH; x++){
+                if(svis->vs_data[x] > y << 1)
+                {
+                  ptr = rgb_data + x * 2 + (SVIS_HEIGHT * 2 - y * 2) * SVIS_WIDTH * 2;
+                  DRAW_DS_PIXEL(ptr, 23);
+                }
+              }
+            }
 	  }
         }
 	else if (cfg.vis_type == VIS_VOICEPRINT){