Changeset 5852 for trunk/Ohana/src/kapa/graph/SetLimits.c
- Timestamp:
- Dec 27, 2005, 3:23:01 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa/graph/SetLimits.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa/graph/SetLimits.c
r2473 r5852 1 1 # include "Ximage.h" 2 # define SCAN \3 status = read (sock, buffer, 16); \4 buffer[16] = 0; \5 sscanf (buffer, "%*s %d", &Nbytes); \6 status = read (sock, buffer, Nbytes); \7 buffer[status] = 0;8 2 9 3 int SetLimits () { 10 4 11 int i, status, Nbytes; 12 char buffer[128]; 5 int i; 13 6 double xmin, xmax, ymin, ymax; 14 7 Layout *layout; … … 16 9 layout = §ion[TheSection]; 17 10 18 SCAN; 19 sscanf (buffer, "%lf %lf %lf %lf", &xmin, &xmax, &ymin, &ymax); 11 KiiScanMessage (sock, "%lf %lf %lf %lf", &xmin, &xmax, &ymin, &ymax); 20 12 21 13 layout[0].axis[2].min = layout[0].axis[0].min = xmin;
Note:
See TracChangeset
for help on using the changeset viewer.
