IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2007, 12:23:09 PM (19 years ago)
Author:
eugene
Message:

upgrading to kapa 2.0 API, upgrades to dvo user interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/EraseOverlay.c

    r13331 r13479  
    11# include "Ximage.h"
    22
    3 int EraseOverlay () {
     3int EraseOverlay (int sock) {
    44
    55  char buffer[256];
     
    1212  section = GetActiveSection();
    1313  image = section->image;
     14  if (image == NULL) return (TRUE);
    1415
    1516  KiiScanCommand (sock, 16, "%*s %d", &N);
    1617
    1718  if (N > NOVERLAYS) {
    18     REALLOCATE (image[0].tickmarks.objects, Object, 1);
     19    REALLOCATE (image[0].tickmarks.objects, KiiOverlay, 1);
    1920    image[0].tickmarks.Nobjects = 0;
    2021  } else {
    2122    for (i = 0; i < image[0].overlay[N].Nobjects; i++) {
    22       if (!strcmp (image[0].overlay[N].objects[i].type, "TEXT")) {
     23      if (image[0].overlay[N].objects[i].type == KII_OVERLAY_TEXT) {
    2324        free (image[0].overlay[N].objects[i].text);
    2425      }
    2526    }
    26     REALLOCATE (image[0].overlay[N].objects, Object, 1);
     27    REALLOCATE (image[0].overlay[N].objects, KiiOverlay, 1);
    2728    image[0].overlay[N].Nobjects = 0;
    2829    image[0].overlay[N].active = FALSE;
Note: See TracChangeset for help on using the changeset viewer.