Index: trunk/src/const.h =================================================================== --- trunk/src/const.h (revision 10569) +++ trunk/src/const.h (revision 10570) @@ -29,11 +29,6 @@ #ifndef PCB_CONST_H #define PCB_CONST_H -/* These need to be carefully written to avoid overflows, and return - a Coord type. */ -#define PCB_SCALE_TEXT(COORD,TEXTSCALE) ((pcb_coord_t)pcb_round((COORD) * ((double)(TEXTSCALE) / 100.0))) -#define PCB_UNPCB_SCALE_TEXT(COORD,TEXTSCALE) ((pcb_coord_t)pcb_round((COORD) * (100.0 / (double)(TEXTSCALE)))) - /* --------------------------------------------------------------------------- * modes */ Index: trunk/src/obj_text.h =================================================================== --- trunk/src/obj_text.h (revision 10569) +++ trunk/src/obj_text.h (revision 10570) @@ -43,6 +43,10 @@ gdl_elem_t link; /* a text is in a list of a layer or an element */ }; +/* These need to be carefully written to avoid overflows, and return + a Coord type. */ +#define PCB_SCALE_TEXT(COORD,TEXTSCALE) ((pcb_coord_t)pcb_round((COORD) * ((double)(TEXTSCALE) / 100.0))) +#define PCB_UNPCB_SCALE_TEXT(COORD,TEXTSCALE) ((pcb_coord_t)pcb_round((COORD) * (100.0 / (double)(TEXTSCALE)))) pcb_text_t *pcb_text_alloc(pcb_layer_t * layer); void pcb_text_free(pcb_text_t * data);