Hello

I have a question on how you can detect if DirectFB has been initialized, and 
if a surface exists before you use them?  

In my code I call the standard,
 DirectFBInit (&argc, &argv);
  DirectFBCreate (&dfb);
  dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN);
  dsc.flags = DSDESC_CAPS;
  dsc.caps  = DSCAPS_PRIMARY | DSCAPS_FLIPPING;
  dfb->CreateSurface( dfb, &dsc, &primary );

But later I release them, I need to check and see if they have been released so 
I can re-initialize if needed.

Mark RAder
--
If you think dogs can't count, try putting three dog biscuits in your pocket 
and then give him only two of them.
**-Phil Pastoret** 

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

Reply via email to