I added the following to the documentation:

The following values are valid for bpp: 2, 8, 12, 14, 15, 18, 24, 32. These will result in the following formats, respectively: DSPF_LUT2, DSPF_LUT8, DSPF_ARGB4444, DSPF_ARGB2554, DSPF_ARGB1555, DSPF_RGB16, DSPF_RGB18, DSPF_RGB24, DSPF_RGB32.

[email protected] wrote:
Code:
---------------------------------------------------------
...

/**    Creating super interface. */
IDirectFB * super_interface = NULL;
if( (dfberr = DirectFBCreate( &super_interface )) != DFB_OK )
{DirectFBErrorFatal( "DirectFBCreate()", dfberr); }

/** Setting super interface.*/
if( (dfberr = super_interface->SetCooperativeLevel( super_interface, DFSCL_NORMAL )) != DFB_OK )
{ DirectFBErrorFatal( "SetCooperativeLevel()", dfberr); }
if( (dfberr = super_interface->SetVideoMode( super_interface, 300, 300, 10 )) != DFB_OK )
{ DirectFBErrorFatal( "SetVideoMode()", dfberr); }
...
---------------------------------------------------------

Compilation goes ok.
But when program running:
DirectFBError [SetVideoMode()]: Invalid argument!

So what is range of argument bpp in SetVideoMode()?
I guess this is a problem.

----------------------------------------------------------------------
Wykonaj diagnostyke skory i odbierz swoj Prezent!
http://link.interia.pl/f22f1

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users



--

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to