2 * display.c - visualization api
12 static IDirectFB *dfb=NULL;
13 static IDirectFBSurface *primary_surface=NULL;
14 static int screen_width=0;
15 static int screen_height=0;
18 int display_init(int x,int y,int z,display *display,u32 *cell,int *argc,char **argv)
21 DFBSurfaceDescription surface_dsc;
22 // DFBFontDescription font_dsc;
25 /* store dimensions */
29 /* store pointer to cells */
34 DirectFBInit(argc,&argv);
36 dfb->SetCooperativeLevel(dfb,DFSCL_FULLSCREEN);
37 surface_dsc.flags=DSDESC_CAPS;
38 surface_dsc.caps=DSCAPS_PRIMARY|DSCAPS_FLIPPING;
39 dfb->CreateSurface(dfb,&surface_dsc,&primary_surface);
40 primary_surface->GetSize(primary_surface,&screen_width,&screen_height);
42 display->primary_surface=primary_surface;
43 display->screen_width=screen_width;
44 display->screen_height=screen_height;
49 int display_draw(u32 *cell,int x,int y,int z)