dfb api ready.
[physik/morpheus.git] / main.c
diff --git a/main.c b/main.c
index 190955c..b7ce867 100644 (file)
--- 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;
 }