Hello,
i try to understand the example "df_window.c" in the current release
0.9.18. I added some code to check the DFBResult of the functions:
DFBCHECK(DirectFBInit( &argc, &argv ));
DFBCHECK(DirectFBCreate( &dfb ));
dfb->GetCardCapabilities( dfb, &caps );
DFBCHECK(dfb->GetDisplayLayer( dfb, DLID_PRIMARY, &layer ));
layer->SetCooperativeLevel( layer, DLSCL_ADMINISTRATIVE );
if (!((caps.blitting_flags & DSBLIT_BLEND_ALPHACHANNEL) &&
(caps.blitting_flags & DSBLIT_BLEND_COLORALPHA )))
{
layer_config.flags = DLCONF_BUFFERMODE;
layer_config.buffermode = DLBM_BACKSYSTEM;
dfbr = layer->SetConfiguration( layer, &layer_config );
/* [1] */
}
layer->GetConfiguration( layer, &layer_config );
dfbr = layer->EnableCursor ( layer, 1 );
/* [2] */
The result of "layer->SetConfiguration" [1] is DFB_ACCESSDENIED !
The result of "layer->EnableCursor" [2] is DFB_ACCESSDENIED too !
But the cursor is enabled. Why i get such results from the procedures ?
Thanks for your help.
Matthias Manhart
Switzerland
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.