void ghid_get_coords (const char *msg, Coord *x, Coord *y) { if (!ghid_port.has_entered && msg) ghid_get_user_xy (msg); if (ghid_port.has_entered) { *x = gport->pcb_x; *y = gport->pcb_y; } }
void ghid_get_coords (const char *msg, int *x, int *y) { if (!ghid_port.has_entered && msg) ghid_get_user_xy (msg); if (ghid_port.has_entered) { *x = SIDE_X (gport->view_x); *y = SIDE_Y (gport->view_y); } }