/* masks for u32 cell */
#define AMORPH 0x00000001
#define CRYSTAL 0x00000000
+#define NAMORPH 0xfffffffe
+#define NCRYSTAL 0xffffffff
#define C_CONC_MASK 0xfffffffe
int display_scan_event(display *display,u32 *x,u32 *y,u32 *z,int *quit)
{
DFBInputEvent keyboard_event;
+ display->keyboard_buffer->WaitForEvent(display->keyboard_buffer);
display->keyboard_buffer->GetEvent(display->keyboard_buffer,DFB_EVENT(&keyboard_event));
if(keyboard_event.type==DIET_KEYPRESS)
{
// process_cell((u32 *)(cell_p+x+y*(x_cell-1)+z*(x_cell-1)*(y_cell-1)));
process_cell(cell_p,x,y,z,x_cell,y_cell,z_cell,a_p_range,a_p_faktor,a_p_p0);
+
+ if(*(u32 *)(cell_p+x+y*(x_cell-1)+z*(x_cell-1)*(y_cell-1)) && *(u32 *)(cell_p+x+y*(x_cell-1)+z*(x_cell-1)*(y_cell-1))!=1)
+ {
+ printfd("debug: x: %u y: %u z: %u -> %x\n",x,y,z,*(u32 *)(cell_p+x+y*(x_cell-1)+z*(x_cell-1)*(y_cell-1)));
+ }
/* display stuff */
if((i%display_refresh_rate)==0)
display_draw(&display,display_x,display_y,display_z);
display_event_init(&display);
- /* debug ... */
- for(i=0;i<x_cell*y_cell*z_cell;++i)
- {
- if(*(u32 *)(cell_p+i))
- printf("%d -> 0x%x\n",i,*(u32 *)(cell_p+i));
- }
-
while(!quit)
{
display_scan_event(&display,&display_x,&display_y,&display_z,&quit);
display_draw(&display,display_x,display_y,display_z);
+ printfd("idle?\n");
}
display_release(&display);