X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fmorpheus.git;a=blobdiff_plain;f=main.c;h=b7ce8674d05f41d9e24a2aaea0c6e7809e883874;hp=190955cdde5b26e93aa6e285a8f1a3837f124eca;hb=a41ec558b235239b4a544297456369d818660543;hpb=bc4fbff2dcad64083b2fa7403d6d17650097c0fd diff --git a/main.c b/main.c index 190955c..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,12 +172,8 @@ 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 display ..."); - // 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 */ @@ -184,5 +181,7 @@ int main(int argc,char **argv) puts("hit button to quit ..."); getchar(); + display_release(&display); + return 23; }