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

gEDA-cvs: CVS update: o_text.c



  User: pcjc2   
  Date: 06/12/27 15:01:17

  Modified:    .        Tag: noscreen o_text.c
  Log:
  * src/o_text.c: Modify o_text_place_rotate() to use world
  
    coordinates, and o_text_rotate_world internally.
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.25.2.2  +7 -7      eda/geda/gaf/gschem/src/o_text.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_text.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_text.c,v
  retrieving revision 1.25.2.1
  retrieving revision 1.25.2.2
  diff -u -b -r1.25.2.1 -r1.25.2.2
  --- o_text.c	27 Dec 2006 17:37:56 -0000	1.25.2.1
  +++ o_text.c	27 Dec 2006 20:01:17 -0000	1.25.2.2
  @@ -730,22 +730,22 @@
   void o_text_place_rotate(TOPLEVEL *w_current)
   {
     OBJECT *o_current;
  -  int screen_x_local = -1;
  -  int screen_y_local = -1;
  +  int x_local = -1;
  +  int y_local = -1;
     int new_angle;
   
     o_current = w_current->page_current->attrib_place_head->next;
     while(o_current) {
       switch(o_current->type) {	
         case(OBJ_TEXT):
  -        screen_x_local = o_current->text->screen_x; 
  -        screen_y_local = o_current->text->screen_y;
  +        x_local = o_current->text->x;
  +        y_local = o_current->text->y;
           break;
       }
       o_current = o_current->next;
     }
   
  -  if (screen_x_local == -1) {
  +  if (x_local == -1) {
       printf("Could not find text obj in new text placement!\n");
       return;
     }
  @@ -756,7 +756,7 @@
   
         case(OBJ_TEXT):
           new_angle = (o_current->text->angle + 90) % 360;
  -        o_text_rotate(w_current, screen_x_local, screen_y_local,
  +        o_text_rotate_world(w_current, x_local, y_local,
                         new_angle, 90, o_current);
           break;
       }
  
  
  


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