Changeset 13344 for branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Center.c
- Timestamp:
- May 10, 2007, 5:24:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Center.c
r13320 r13344 1 1 # include "Ximage.h" 2 2 3 int Center ( ) {3 int Center (int sock) { 4 4 5 5 int zoom; … … 9 9 KapaImageWidget *image; 10 10 11 KiiScanMessage (sock, "%lf %lf %d", &X, &Y, &zoom); 12 11 13 graphic = GetGraphic(); 12 14 section = GetActiveSection(); 13 15 image = section->image; 14 15 KiiScanMessage (sock, "%lf %lf %d", &X, &Y, &zoom); 16 if (image == NULL) return (TRUE); 16 17 17 18 image[0].X = 0.5*image[0].matrix.Naxis[0] - X;
Note:
See TracChangeset
for help on using the changeset viewer.
