Ejemplo n.º 1
0
Archivo: set.c Proyecto: bert/pcb-rnd
void
SetLocalRef (Coord X, Coord Y, bool Showing)
{
  static MarkType old;
  static int count = 0;

  if (Showing)
    {
      notify_mark_change (false);
      if (count == 0)
	old = Marked;
      Marked.X = X;
      Marked.Y = Y;
      Marked.status = true;
      count++;
      notify_mark_change (true);
    }
  else if (count > 0)
    {
      notify_mark_change (false);
      count = 0;
      Marked = old;
      notify_mark_change (true);
    }
}
Ejemplo n.º 2
0
void
RestoreCrosshair (void)
{
    static bool warned_old_api = false;
    if (!warned_old_api)
    {
        Message (_("WARNING: A plugin is using the deprecated API RestoreCrosshair().\n"
                   "         This API may be removed in a future release of PCB.\n"));
        warned_old_api = true;
    }

    notify_crosshair_change (true);
    notify_mark_change (true);
}