Starcraft vs. fullscreen

Lionel Ulmer lionel.ulmer at free.fr
Fri Apr 7 01:20:45 CDT 2006


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/



More information about the wine-devel mailing list