I tried to set the bpp via SetVideoMode to lower values (16 and 8) to
see how my CheckDFB looks like but it seems this doesn't work. With
fbset I can reduce the bpp of the frame buffer but DirectFB allways
seems to use the 32 bpp regardless what I specify via SetVideoMode.
This is my source code:
DFBCHECK (DirectFBInit (NULL, NULL));
DFBCHECK (DirectFBCreate (&dfb));
dfb->SetVideoMode (dfb, width, height, m_var_info.bits_per_pixel);
dfb->SetCooperativeLevel (dfb, DFSCL_NORMAL);
dsc.flags = DSDESC_CAPS;
dsc.caps = (DFBSurfaceCapabilities)(DSCAPS_PRIMARY | DSCAPS_FLIPPING);
DFBCHECK (dfb->CreateSurface( dfb, &dsc, &primary ));
Can anyone say what's wrong?
O. Wyss
--
See a huge pile of work at "http://wyodesktop.sourceforge.net/"