IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 30, 2008, 10:15:32 AM (18 years ago)
Author:
eugene
Message:

functions to set the display parity

File:
1 edited

Legend:

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

    r16256 r21060  
    3131}
    3232
     33int Parity (int sock) {
     34
     35  int X, Y;
     36  Graphic *graphic;
     37  Section *section;
     38  KapaImageWidget *image;
     39
     40  KiiScanMessage (sock, "%d %d", &X,  &Y);
     41
     42  graphic = GetGraphic();
     43  section = GetActiveSection();
     44  image = section->image;
     45  if (image == NULL) return (TRUE);
     46
     47  image[0].picture.flipx = X;
     48  image[0].picture.flipy = Y;
     49
     50  image[0].zoom.flipx    = X;
     51  image[0].zoom.flipy    = Y;
     52
     53  image[0].wide.flipx    = X;
     54  image[0].wide.flipy    = Y;
     55
     56  if (USE_XWINDOW) {
     57    Remap (graphic, image);
     58    Refresh ();
     59    XFlush (graphic[0].display);
     60  }
     61
     62  return (TRUE);
     63}
     64
Note: See TracChangeset for help on using the changeset viewer.