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

Location:
trunk/Ohana/src/kapa2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/include/prototypes.h

    r17466 r21060  
    144144
    145145int           Center              PROTO(());
     146int           Parity              PROTO(());
    146147void          SetColorScale       PROTO((Graphic *graphic, KapaImageWidget *image));
    147148void          SetColorScale1D     PROTO((Graphic *graphic, KapaImageWidget *image));
  • 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
  • trunk/Ohana/src/kapa2/src/CheckPipe.c

    r16011 r21060  
    304304  }
    305305
     306  if (!strcmp (word, "PARI")) {
     307    status = Parity (sock);
     308    KiiSendCommand (sock, 4, "DONE");
     309    FINISHED (status);
     310  }
     311
    306312  if (!strcmp (word, "NPIX")) {
    307313    GetPixelCount (sock);
  • trunk/Ohana/src/kapa2/src/LoadPicture.c

    r21058 r21060  
    9191  SetColorScale (graphic, image);
    9292
     93  SetColorScale (graphic, image);
     94
    9395  if (!USE_XWINDOW) return (TRUE);
    9496
Note: See TracChangeset for help on using the changeset viewer.