Fresco/Berlin/modules/Tools Switch.cc,1.3,1.4

Nick Lewycky <[email protected]>
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Berlin/modules/Tools
In directory purcel:/tmp/cvs-serv31951

Modified Files:
	Switch.cc 
Log Message:
Improve the Switch a little. Use need_resize instead of need_redraw.


Index: Switch.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/modules/Tools/Switch.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Switch.cc	5 Jan 2003 17:54:42 -0000	1.3
+++ Switch.cc	10 Mar 2003 03:47:18 -0000	1.4
@@ -66,7 +66,7 @@
       if (flag == my_on) return;
       my_on = flag;
       set(my_alternate, body());
-      need_redraw();
+      need_resize();
     }
   else my_telltale = Telltale::_nil();
 }
@@ -77,8 +77,9 @@
   bool flag = my_telltale->test(my_mask);
   if (flag == my_on) return;
   my_on = flag;
+  need_resize(); // FIXME race condition, see bug256.
   set(my_alternate, body());
-  need_redraw();
+  need_resize();
 }
 
 void Switch::set(Graphic_ptr g1, Graphic_ptr g2)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.