[xiph-commits] r12268 - trunk/sushivision

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Sat Dec 30 18:32:13 PST 2006


Author: xiphmont
Date: 2006-12-30 18:32:12 -0800 (Sat, 30 Dec 2006)
New Revision: 12268

Modified:
   trunk/sushivision/panel-2d.c
Log:
Blank 2d panel on dimchange pending recompute



Modified: trunk/sushivision/panel-2d.c
===================================================================
--- trunk/sushivision/panel-2d.c	2006-12-31 02:28:32 UTC (rev 12267)
+++ trunk/sushivision/panel-2d.c	2006-12-31 02:32:12 UTC (rev 12268)
@@ -637,6 +637,8 @@
 
 static void dimchange_callback_2d(GtkWidget *button,gpointer in){
   sushiv_panel_t *p = (sushiv_panel_t *)in;
+  sushiv_panel2d_t *p2 = p->subtype->p2;
+  int i,j;
 
   if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))){
 
@@ -646,6 +648,13 @@
     update_xy_availability(p);
     update_crosshairs(p);
     plot_unset_box(PLOT(p->private->graph));
+
+    /* if the data_rect already exists, blank it */
+    for(i=0;i<p->objectives;i++)
+      for(j=0;j<p2->data_w*p2->data_h;j++)
+	p2->data_rect[i][j]=NAN;
+    _sushiv_panel2d_map_redraw(p);
+    
     _mark_recompute_2d(p);
 
     _sushiv_panel_undo_resume(p);



More information about the commits mailing list