adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Windows Fullscreen mode again


From: Kai Sterker
Subject: [Adonthell-devel] Windows Fullscreen mode again
Date: Fri, 13 Sep 2002 23:40:25 +0200

I've been browsing the web and our code in the search for a solution to
the windows fullscreen issue. I stumbled across a few things that might
be worth trying out.

First, there's a comment on the SDL ML
(hhttp://www.libsdl.org/pipermail/sdl/2002-June/046105.html) where the
guy says "that using SDL's rendering with only the SDL_SWSURFACE and
SDL_FULLSCREEN flags works correctly, however adding SDL_DOUBLEBUF will
break it." But we set that flag.

In the SDL docs (http://sdldoc.csn.ul.ie/sdlsetvideomode.php) it says 
"SDL_DOUBLEBUF: Enable hardware double buffering; only valid with
SDL_HWSURFACE"

But we're not using a HWSURFACE, so it's useless for us anyways (and
might indeed cause problems under Windows).


Finally, in our own code, the surface::double_size and
surface::half_size methods do pixel manipulations of the image without
locking the surface first. Is that correct? If it is, why? 

Also, in case of double screen mode, the wrong values get passed to
SDL_VideoModeOK.

I've made according changes to the code. Would be cool if you could
update the windows binary, Alex, to see if it makes any difference.

Kai




reply via email to

[Prev in Thread] Current Thread [Next in Thread]