Index: trunk/Ohana/src/kapa2/include/prototypes.h
===================================================================
--- trunk/Ohana/src/kapa2/include/prototypes.h	(revision 21058)
+++ trunk/Ohana/src/kapa2/include/prototypes.h	(revision 21060)
@@ -144,4 +144,5 @@
 
 int           Center              PROTO(());
+int           Parity              PROTO(());
 void          SetColorScale       PROTO((Graphic *graphic, KapaImageWidget *image));
 void          SetColorScale1D     PROTO((Graphic *graphic, KapaImageWidget *image));
Index: trunk/Ohana/src/kapa2/src/Center.c
===================================================================
--- trunk/Ohana/src/kapa2/src/Center.c	(revision 21058)
+++ trunk/Ohana/src/kapa2/src/Center.c	(revision 21060)
@@ -31,2 +31,34 @@
 }
 
+int Parity (int sock) {
+
+  int X, Y;
+  Graphic *graphic;
+  Section *section;
+  KapaImageWidget *image;
+
+  KiiScanMessage (sock, "%d %d", &X,  &Y);
+
+  graphic = GetGraphic();
+  section = GetActiveSection();
+  image = section->image;
+  if (image == NULL) return (TRUE);
+
+  image[0].picture.flipx = X;
+  image[0].picture.flipy = Y;
+
+  image[0].zoom.flipx 	 = X;
+  image[0].zoom.flipy 	 = Y;
+
+  image[0].wide.flipx 	 = X;
+  image[0].wide.flipy 	 = Y;
+
+  if (USE_XWINDOW) {
+    Remap (graphic, image);
+    Refresh ();
+    XFlush (graphic[0].display);
+  }
+
+  return (TRUE);
+}
+
Index: trunk/Ohana/src/kapa2/src/CheckPipe.c
===================================================================
--- trunk/Ohana/src/kapa2/src/CheckPipe.c	(revision 21058)
+++ trunk/Ohana/src/kapa2/src/CheckPipe.c	(revision 21060)
@@ -304,4 +304,10 @@
   }
 
+  if (!strcmp (word, "PARI")) {
+    status = Parity (sock);
+    KiiSendCommand (sock, 4, "DONE");
+    FINISHED (status);
+  }
+
   if (!strcmp (word, "NPIX")) {
     GetPixelCount (sock);
Index: trunk/Ohana/src/kapa2/src/LoadPicture.c
===================================================================
--- trunk/Ohana/src/kapa2/src/LoadPicture.c	(revision 21058)
+++ trunk/Ohana/src/kapa2/src/LoadPicture.c	(revision 21060)
@@ -91,4 +91,6 @@
   SetColorScale (graphic, image);
 
+  SetColorScale (graphic, image);
+
   if (!USE_XWINDOW) return (TRUE);
 
