On Thu, Apr 06, 2006 at 10:18:16AM +0200, Stefan Dösinger wrote:
> Because windows' ddraw.dll restores everything when the app exists. I've 
> added 
> some code to do that do my ddraw lib. I restore the screen mode when the 
> ddraw object is released, and on the last DllMain() unload call, I loop 
> through all ddraw objects, print their refcount, destroy all the surfaces and 
> the ddraw object. This restores the screen res successfully.

Well it's the same for memory: who in his right mind in modern operating
system still 'free's at exit all 'malloc'ed memory :-) ?

         Lionel

-- 
                 Lionel Ulmer - http://www.bbrox.org/


Reply via email to