int screen_height,screen_width; /* screen dimensions */
} display;
-#define DEFAULT_DISPLAY_X 25
-#define DEFAULT_DISPLAY_Y 25
-#define DEFAULT_DISPLAY_Z 50
#define DEFAULT_DISPLAY_REF_RATE 100
#define DISPLAY_X_FREE 15
puts("-y <value> \t # y cells (default 50)");
puts("-z <value> \t # z cells (default 100)");
puts("-s <value> \t # steps to calculate (default 5000)");
- puts("-X <value> \t display area intercept point x (default 25)");
- puts("-Y <value> \t display area intercept point y (default 25)");
- puts("-Z <value> \t display area intercept point z (default 50)");
+ puts("-X <value> \t display area intercept point x (default # x celss / 2)");
+ puts("-Y <value> \t display area intercept point y (default # y cells / 2)");
+ puts("-Z <value> \t display area intercept point z (default # z cells / 2)");
puts("-d <value> \t refresh every <value> loops (default 100)");
return -23;
}
slope_nel=DEFAULT_SLOPE_NEL;
start_nel=DEFAULT_START_NEL;
steps=DEFAULT_STEPS;
- display_x=DEFAULT_DISPLAY_X-1;
- display_y=DEFAULT_DISPLAY_Y-1;
- display_z=DEFAULT_DISPLAY_Z-1;
+ display_x=x_cell/2;
+ display_y=y_cell/2;
+ display_z=z_cell/2;
display_refresh_rate=DEFAULT_DISPLAY_REF_RATE;
/* parse command args */