[SDL] Fadeout effect when switching modes in fullscreen on OSX
Christian Walther
cwalther at gmx.ch
Tue Dec 12 09:11:33 PST 2006
Stephen Anthony wrote:
> Instead of the quick change that occurs in Linux and Windows, the
> whole screen fades out, and then back in again.
>
> What is this effect, and is it possible to disable it?
The black screen is there to hide the flickering that the resolution
switch would otherwise cause, and the fading to and from it is there to
make it easier on the eyes.
There's no way for a library user to disable this (I guess it didn't
occur to anyone that anyone would want to do this), but you can of
course modify SDL to get rid of it. The code is in
src/video/quartz/SDL_QuartzVideo.m (search case-insensitively for "fade"
to catch all places, or have a look at how the current code was
introduced:
<http://libsdl.org/cgi/viewvc.cgi/trunk/SDL/src/video/quartz/SDL_QuartzVideo.m?r1=1885&r2=1884&pathrev=1885&diff_format=l>).
See also the discussion that led to the current implementation:
<http://thread.gmane.org/gmane.comp.lib.sdl/25530/>.
-Christian
More information about the SDL
mailing list