Index: trunk/src/crosshair.c =================================================================== --- trunk/src/crosshair.c (revision 4533) +++ trunk/src/crosshair.c (revision 4534) @@ -1205,6 +1205,19 @@ } /* --------------------------------------------------------------------------- + * centers the displayed PCB around the specified point (X,Y) + */ +void CenterDisplay(Coord X, Coord Y) +{ + Coord save_grid = PCB->Grid; + PCB->Grid = 1; + if (MoveCrosshairAbsolute(X, Y)) + notify_crosshair_change(pcb_true); + gui->set_crosshair(Crosshair.X, Crosshair.Y, HID_SC_WARP_POINTER); + PCB->Grid = save_grid; +} + +/* --------------------------------------------------------------------------- * initializes crosshair stuff * clears the struct, allocates to graphical contexts */ Index: trunk/src/crosshair.h =================================================================== --- trunk/src/crosshair.h (revision 4533) +++ trunk/src/crosshair.h (revision 4534) @@ -114,5 +114,6 @@ void InitCrosshair(void); void DestroyCrosshair(void); void FitCrosshairIntoGrid(Coord, Coord); +void CenterDisplay(Coord X, Coord Y); #endif Index: trunk/src/misc.c =================================================================== --- trunk/src/misc.c (revision 4533) +++ trunk/src/misc.c (revision 4534) @@ -544,19 +544,6 @@ } /* --------------------------------------------------------------------------- - * centers the displayed PCB around the specified point (X,Y) - */ -void CenterDisplay(Coord X, Coord Y) -{ - Coord save_grid = PCB->Grid; - PCB->Grid = 1; - if (MoveCrosshairAbsolute(X, Y)) - notify_crosshair_change(pcb_true); - gui->set_crosshair(Crosshair.X, Crosshair.Y, HID_SC_WARP_POINTER); - PCB->Grid = save_grid; -} - -/* --------------------------------------------------------------------------- * transforms symbol coordinates so that the left edge of each symbol * is at the zero position. The y coordinates are moved so that min(y) = 0 * Index: trunk/src/misc.h =================================================================== --- trunk/src/misc.h (revision 4533) +++ trunk/src/misc.h (revision 4534) @@ -68,9 +68,6 @@ /* Returns a string with info about this copy of pcb. */ char *GetInfoString(void); -void SaveOutputWindow(void); -void CenterDisplay(Coord, Coord); - char *EvaluateFilename(const char *, const char *, const char *, const char *); const char *pcb_author(void);