IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2007, 5:24:58 PM (19 years ago)
Author:
eugene
Message:

converting to kapa2 support: INET socket connections, single device type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Center.c

    r13320 r13344  
    11# include "Ximage.h"
    22
    3 int Center () {
     3int Center (int sock) {
    44
    55  int zoom;
     
    99  KapaImageWidget *image;
    1010
     11  KiiScanMessage (sock, "%lf %lf %d", &X,  &Y, &zoom);
     12
    1113  graphic = GetGraphic();
    1214  section = GetActiveSection();
    1315  image = section->image;
    14 
    15   KiiScanMessage (sock, "%lf %lf %d", &X,  &Y, &zoom);
     16  if (image == NULL) return (TRUE);
    1617
    1718  image[0].X = 0.5*image[0].matrix.Naxis[0] - X;
Note: See TracChangeset for help on using the changeset viewer.