[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: o_basic.c



  User: cnieves 
  Date: 06/10/22 11:30:38

  Modified:    .        Tag: glist_dev o_basic.c o_complex.c
  Log:
  Keep calling the redraw functions.
  
  Some of them seem to recalculate the object position.
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.21.2.5  +10 -3     eda/geda/gaf/gschem/src/o_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_basic.c,v
  retrieving revision 1.21.2.4
  retrieving revision 1.21.2.5
  diff -u -b -r1.21.2.4 -r1.21.2.5
  --- o_basic.c	22 Oct 2006 09:47:40 -0000	1.21.2.4
  +++ o_basic.c	22 Oct 2006 15:30:38 -0000	1.21.2.5
  @@ -51,6 +51,7 @@
    */
   void o_redraw_all(TOPLEVEL *w_current)
   {
  +  int redraw_state;
     o_redraw_all_fast(w_current);
   
     if (w_current->inside_action) {
  @@ -69,6 +70,12 @@
   
         case(DRAWCOMP):
         case(ENDCOMP):
  +	/* Call the o_draw_list without redrawing, so the components */
  +	/* coordinates get recalculated */
  +	redraw_state = w_current->DONT_REDRAW;
  +	w_current->DONT_REDRAW = 1;
  + 	o_draw_list(w_current, w_current->page_current->complex_place_list); 
  +	w_current->DONT_REDRAW = redraw_state;
           o_drawbounding(w_current, 
                          NULL,
   		       w_current->page_current->complex_place_list,
  
  
  
  1.28.2.3  +2 -3      eda/geda/gaf/gschem/src/o_complex.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_complex.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_complex.c,v
  retrieving revision 1.28.2.2
  retrieving revision 1.28.2.3
  diff -u -b -r1.28.2.2 -r1.28.2.3
  --- o_complex.c	21 Oct 2006 22:20:47 -0000	1.28.2.2
  +++ o_complex.c	22 Oct 2006 15:30:38 -0000	1.28.2.3
  @@ -46,9 +46,8 @@
     g_return_if_fail (o_current->complex != NULL);
     g_return_if_fail (o_current->complex->prim_objs != NULL);
   
  -  if (!w_current->DONT_REDRAW) {
  +  /* Call the redraw functions. Some of them recalculates the object position*/
       o_redraw(w_current, o_current->complex->prim_objs, TRUE);
  -  }
   
     get_object_list_bounds(w_current, o_current->complex->prim_objs,
   			 &left, &top, &right, &bottom);
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs