|Site sponsored by IGEL|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[directfb-users] Re: Multiple DirectFBInit() calls possible?
Hi, Ulrich von Zadow <email@example.com> writes: > (sorry for multiple postings. just trying to keep threads separate) > > Is it possible to do multiple DirectFBInit() calls with differing > parameters? I'm doing something like this: > > DirectFBInit (&argc, &argv); > DirectFBCreate (&DirectFB); > [.. render stuff ..] > DirectFB->Release(DirectFB); > > DirectFBInit (&argc, &argv); > DirectFBCreate (&DirectFB); > [.. render stuff ..] > DirectFB->Release(DirectFB); > > The effect seems to be that the arguments to the second DirectFBInit > get ignored completely. If the first one used SDL, so will the second > one. If the first one had a resolution of 800x600, the second one will > too. > > Should DirectFB support this? Am I missing a cleanup call? Hmm, the idea was that you only call DirectFBInit() once and all subsequent calls to DirectFBCreate() use the settings. This is necessary since the DirectFB instance is a singleton and you get interfaces to the very same DirectFB when you call DirectFBCreate more often. Things are a bit different if you release all DirectFB interfaces like in your example. I think we could change the code so that it accepts a reconfiguration by means of DirectFBInit() if used this way. I wonder however why you might want to this. Perhaps you can give us a usage example? Sven -- Info: To unsubscribe send a mail to firstname.lastname@example.org with "unsubscribe directfb-users" as subject.