IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 3:21:40 PM (21 years ago)
Author:
eugene
Message:

substantial work to move kii/kapa call into libkapa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/textline.c

    r4689 r5850  
    2323    size = atof (argv[N]);
    2424    remove_argument (N, &argc, argv);
    25     SendGraphCommand (Xgraph, 4, "FONT");
    26     SendGraphCommand (Xgraph, 16, "%s", name);
    27     SendGraphCommand (Xgraph, 16, "%d", size);
     25    KapaSetFont (Xgraph, name, size);
    2826  }
    2927
     
    6058  }   
    6159
    62   /* WARNING: this is a bit dangerous - convert to SendGraphMessage format */
    63   SendGraphCommand (Xgraph, 4, "PTXT");
    64   SendGraphCommand (Xgraph, 16, "%f", x);
    65   SendGraphCommand (Xgraph, 16, "%f", y);
    66   SendGraphCommand (Xgraph, 16, "%f", angle);
    67   SendGraphCommand (Xgraph, 128, "%s", argv[3]);
     60  KapaSendTextline (Xgraph, argv[3], x, y, angle);
    6861  return (TRUE);
    6962}
Note: See TracChangeset for help on using the changeset viewer.