Changeset 21060 for trunk/Ohana/src/kapa2
- Timestamp:
- Dec 30, 2008, 10:15:32 AM (18 years ago)
- Location:
- trunk/Ohana/src/kapa2
- Files:
-
- 4 edited
-
include/prototypes.h (modified) (1 diff)
-
src/Center.c (modified) (1 diff)
-
src/CheckPipe.c (modified) (1 diff)
-
src/LoadPicture.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/include/prototypes.h
r17466 r21060 144 144 145 145 int Center PROTO(()); 146 int Parity PROTO(()); 146 147 void SetColorScale PROTO((Graphic *graphic, KapaImageWidget *image)); 147 148 void SetColorScale1D PROTO((Graphic *graphic, KapaImageWidget *image)); -
trunk/Ohana/src/kapa2/src/Center.c
r16256 r21060 31 31 } 32 32 33 int 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 304 304 } 305 305 306 if (!strcmp (word, "PARI")) { 307 status = Parity (sock); 308 KiiSendCommand (sock, 4, "DONE"); 309 FINISHED (status); 310 } 311 306 312 if (!strcmp (word, "NPIX")) { 307 313 GetPixelCount (sock); -
trunk/Ohana/src/kapa2/src/LoadPicture.c
r21058 r21060 91 91 SetColorScale (graphic, image); 92 92 93 SetColorScale (graphic, image); 94 93 95 if (!USE_XWINDOW) return (TRUE); 94 96
Note:
See TracChangeset
for help on using the changeset viewer.
