X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=main.c;h=b7ce8674d05f41d9e24a2aaea0c6e7809e883874;hb=a41ec558b235239b4a544297456369d818660543;hp=07f34c9bf85fcc25afff90c1a67a331e8f3c3e4b;hpb=0ba7850819572931f67d28ebca0cc7d73d7c6dea;p=physik%2Fmorpheus.git diff --git a/main.c b/main.c index 07f34c9..b7ce867 100644 --- a/main.c +++ b/main.c @@ -57,7 +57,7 @@ int process_cell(u32 *cell) { /* tag it ... testing! */ make_amorph(cell); - + return 23; } @@ -149,6 +149,7 @@ int main(int argc,char **argv) /* testing ... */ /* allocate cells */ + printf("malloc will free %d bytes now ...\n",x_cell*y_cell*z_cell*sizeof(u32)); if((cell_p=malloc(x_cell*y_cell*z_cell*sizeof(u32)))==NULL) { puts("failed allocating memory for cells\n"); @@ -171,17 +172,16 @@ int main(int argc,char **argv) process_cell((u32 *)(cell_p+x+y*(x_cell-1)+z*(x_cell-1)*(y_cell-1))); /* display stuff */ - if((i%display_refresh_rate)==0) - { - puts("refreshing diplay ..."); - // display_draw(&display,display_x,display_y,display_z); - } - /* */ + if((i%display_refresh_rate)==0) + display_draw(&display,display_x,display_y,display_z); } /* display again and quit when button hit */ + display_draw(&display,display_x,display_y,display_z); puts("hit button to quit ..."); getchar(); + display_release(&display); + return 23; }