diff audacious/widgets/svis.c @ 2203:60bd49189fde trunk

[svn] - two realcolour modes for voiceprint vis: Fire and Ice - removed duplicate code from vis.c
author marvin
date Fri, 22 Dec 2006 20:10:22 -0800
parents 13b7c5f26332
children 37076c4efff7
line wrap: on
line diff
--- a/audacious/widgets/svis.c	Fri Dec 22 17:35:11 2006 -0800
+++ b/audacious/widgets/svis.c	Fri Dec 22 20:10:22 2006 -0800
@@ -119,7 +119,7 @@
 
     if (!cfg.doublesize) {
       memset(rgb_data, 0, SVIS_WIDTH * SVIS_HEIGHT);
-      if (cfg.vis_type == VIS_ANALYZER) {
+      if (cfg.vis_type == VIS_ANALYZER  && !bmp_playback_get_paused() && bmp_playback_get_playing()){
 	for(y=0; y < SVIS_HEIGHT; y++){
 	  if (cfg.analyzer_type == ANALYZER_BARS){
 	    for(x=0;x< SVIS_WIDTH; x++){
@@ -188,7 +188,7 @@
     else {                      /* doublesize */
 
         memset(rgb_data, 0, SVIS_WIDTH * 2 * SVIS_HEIGHT * 2);
-        if (cfg.vis_type == VIS_ANALYZER) {
+        if (cfg.vis_type == VIS_ANALYZER && !bmp_playback_get_paused() && bmp_playback_get_playing()){
 	  for(y=0; y < SVIS_HEIGHT; y++){
             if (cfg.analyzer_type == ANALYZER_BARS){
               for(x=0;x< SVIS_WIDTH; x++){