コード例 #1
0
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;
    }
}
コード例 #2
0
ファイル: gui-output-events.c プロジェクト: bert/pcb-update
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);
    }
}