From: hackbard Date: Tue, 25 Mar 2003 19:38:31 +0000 (+0000) Subject: changed display default values X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=9d299f65c528e62247efb3b7f2b70468f43a255c;p=physik%2Fmorpheus.git changed display default values --- diff --git a/defines.h b/defines.h index 45be196..aac6562 100644 --- a/defines.h +++ b/defines.h @@ -45,9 +45,6 @@ typedef struct __display { 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 diff --git a/main.c b/main.c index b7ce867..2b88640 100644 --- a/main.c +++ b/main.c @@ -33,9 +33,9 @@ int usage() puts("-y \t # y cells (default 50)"); puts("-z \t # z cells (default 100)"); puts("-s \t # steps to calculate (default 5000)"); - puts("-X \t display area intercept point x (default 25)"); - puts("-Y \t display area intercept point y (default 25)"); - puts("-Z \t display area intercept point z (default 50)"); + puts("-X \t display area intercept point x (default # x celss / 2)"); + puts("-Y \t display area intercept point y (default # y cells / 2)"); + puts("-Z \t display area intercept point z (default # z cells / 2)"); puts("-d \t refresh every loops (default 100)"); return -23; } @@ -80,9 +80,9 @@ int main(int argc,char **argv) 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 */