[xiph-commits] r12803 - trunk/sushivision

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Mar 23 04:49:37 PDT 2007


Author: xiphmont
Date: 2007-03-23 04:49:35 -0700 (Fri, 23 Mar 2007)
New Revision: 12803

Modified:
   trunk/sushivision/Makefile
   trunk/sushivision/dimension.c
   trunk/sushivision/panel-1d.c
   trunk/sushivision/panel-xy.c
Log:
Makefile fix: make install should trigger a make all if not already done

Blank XY and 1D panels to background on rescale until they rerender.



Modified: trunk/sushivision/Makefile
===================================================================
--- trunk/sushivision/Makefile	2007-03-23 11:30:16 UTC (rev 12802)
+++ trunk/sushivision/Makefile	2007-03-23 11:49:35 UTC (rev 12803)
@@ -98,6 +98,8 @@
 	$(LD) $(OBJ) example_chirp.o $(CFLAGS) -o sushivision_chirp $(LIBS) $(LDF)
 	$(LD) $(OBJ) example_spirograph.o $(CFLAGS) -o sushivision_spirograph $(LIBS) $(LDF)
 
+$(TARGET): all
+
 install: $(TARGET)
 	$(INSTALL) -d -m 0755 $(INCDIR)
 	$(INSTALL) -m 0644 $(INC) $(INCDIR)

Modified: trunk/sushivision/dimension.c
===================================================================
--- trunk/sushivision/dimension.c	2007-03-23 11:30:16 UTC (rev 12802)
+++ trunk/sushivision/dimension.c	2007-03-23 11:49:35 UTC (rev 12803)
@@ -761,7 +761,7 @@
   if(!d) return -EINVAL;
 
   d->type = SV_DIM_PICKLIST;
-  
+  d->flags |= SV_DIM_NO_X | SV_DIM_NO_Y;
   return 0;
 }
 

Modified: trunk/sushivision/panel-1d.c
===================================================================
--- trunk/sushivision/panel-1d.c	2007-03-23 11:30:16 UTC (rev 12802)
+++ trunk/sushivision/panel-1d.c	2007-03-23 11:49:35 UTC (rev 12803)
@@ -725,11 +725,9 @@
 	}
       }
     }
-    
+
     p1->data_size = dw;
-    p1->panel_w = w;
-    p1->panel_h = h;
-    
+
     if(!p1->data_vec){
       // allocate it
 
@@ -744,6 +742,14 @@
       for(j=0;j<dw;j++)
 	p1->data_vec[i][j]=NAN;
 
+    if(p1->panel_w != w || p1->panel_h != h){
+      p->private->map_progress_count=0;
+      _sv_panel1d_map_redraw(p, NULL);
+    }
+
+    p1->panel_w = w;
+    p1->panel_h = h;
+    
     _sv_panel_dirty_plot(p);
   }
 }

Modified: trunk/sushivision/panel-xy.c
===================================================================
--- trunk/sushivision/panel-xy.c	2007-03-23 11:30:16 UTC (rev 12802)
+++ trunk/sushivision/panel-xy.c	2007-03-23 11:49:35 UTC (rev 12803)
@@ -715,6 +715,14 @@
 				       plot->scalespacing,
 				       xy->y_scale->legend);
 
+  if(xy->panel_w != w || xy->panel_h != h){
+    p->private->map_progress_count=0;
+    _sv_panelxy_map_redraw(p, NULL);
+  }
+  
+  xy->panel_w = w;
+  xy->panel_h = h;
+
   // always recompute, but also update zoom
   if(!_sv_panelxy_mark_recompute_by_metric(p,0))
     _sv_panelxy_mark_recompute(p);



More information about the commits mailing list