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

gEDA-cvs: CVS update: x_event.c



  User: pcjc2   
  Date: 07/02/11 20:51:34

  Modified:    .        Tag: noscreen x_event.c
  Log:
  Grid snap in x_event.c after converting to world
  
  coords, rather than before. (The computation for grid snapping in
  
  screen coords involves a conversion to world coords and back)
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.41.6.4  +4 -3      eda/geda/gaf/gschem/src/x_event.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_event.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_event.c,v
  retrieving revision 1.41.6.3
  retrieving revision 1.41.6.4
  diff -u -b -r1.41.6.3 -r1.41.6.4
  --- x_event.c	27 Dec 2006 19:56:42 -0000	1.41.6.3
  +++ x_event.c	12 Feb 2007 01:51:34 -0000	1.41.6.4
  @@ -841,9 +841,10 @@
   	redraw_state = w_current->DONT_REDRAW;
   	w_current->DONT_REDRAW = 1;
           SCREENtoWORLD( w_current,
  -  	       fix_x(w_current, w_current->start_x),
  -	       fix_y(w_current, w_current->start_y),
  +                       w_current->start_x, w_current->start_y,
                  &w_x, &w_y );
  +        w_x = snap_grid(w_current, w_x);
  +        w_y = snap_grid(w_current, w_y);
   	o_rotate_90_world(w_current, w_current->page_current->complex_place_list, w_x, w_y );
   	w_current->DONT_REDRAW = redraw_state;
   	w_current->rotated_inside ++;	
  
  
  


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