-#ifdef USE_DFB_API
- d3_lattice_draw(&d3_l,x,y,z,24,arg_v);
- scan_event(&d3_l,&x,&y,&z,&quit,&escape);
-#endif
+ if(switchmode==0) strcpy(mode_txt,"view: a/c mode");
+ if(switchmode==1) strcpy(mode_txt,"view: c conc mode");
+ if(switchmode==2) strcpy(mode_txt,"view: a pressure mode");
+ d3_lattice_draw(&d3_l,x,y,z,24,arg_v,mode);
+ scan_event(&d3_l,&x,&y,&z,&quit,&escape,&switchmode);