{
#ifdef USE_DFB_API
DFBSurfaceDescription surface_dsc;
+ DFBFontDescription font_dsc;
#endif
/* store dimensions */
surface_dsc.caps=DSCAPS_PRIMARY|DSCAPS_FLIPPING;
display->dfb->CreateSurface(display->dfb,&surface_dsc,&(display->primary_surface));
display->primary_surface->GetSize(display->primary_surface,&(display->screen_width),&(display->screen_height));
-
+ font_dsc.flags=DFDESC_HEIGHT;
+ font_dsc.height=display->max_y*(display->screen_height/(display->max_z+display->max_y+DISPLAY_Y_FREE))/10;
+ display->dfb->CreateFont(display->dfb,DISPLAY_FONT,&font_dsc,&(display->font));
+ display->primary_surface->SetFont(display->primary_surface,display->font);
#endif
return 23;
}
{
#ifdef USE_DFB_API
int menu_x,menu_y,menu_w,menu_h; /* for the yellow box */
- DFBFontDescription font_dsc;
char text[MAX_TXT];
u32 x_c,y_c,z_c;
unsigned char r,g,b,a;
display->primary_surface->SetColor(display->primary_surface,r,g,b,a);
display->primary_surface->DrawRectangle(display->primary_surface,menu_x,menu_y,menu_w,menu_h);
display->primary_surface->DrawLine(display->primary_surface,menu_x+display_faktor_x*display->max_x/2,menu_y+display_faktor_y,menu_x+display_faktor_x*display->max_x/2,menu_y+display_faktor_y*display->max_y-display_faktor_y);
- font_dsc.flags=DFDESC_HEIGHT;
- font_dsc.height=menu_h/10;
- display->dfb->CreateFont(display->dfb,DISPLAY_FONT,&font_dsc,&(display->font));
- display->primary_surface->SetFont(display->primary_surface,display->font);
display->primary_surface->SetColor(display->primary_surface,0x80,0x80,0xff,0xff);
sprintf(text,"x: %u",x);
display->primary_surface->DrawString(display->primary_surface,text,-1,menu_x+display_faktor_x,menu_y+display_faktor_y+menu_h/10,DSTF_LEFT);