We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 100 - Mac OS X fullscreen and fades
Summary: Mac OS X fullscreen and fades
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: PowerPC Mac OS X (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-27 12:37 UTC by Ryan C. Gordon
Modified: 2006-02-07 06:18 UTC (History)
1 user (show)

See Also:


Attachments
Fast Fade Patch (11.53 KB, patch)
2006-02-04 09:51 UTC, Christian Walther
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan C. Gordon 2006-01-27 12:37:43 UTC
Date: Thu, 26 Jan 2006 09:49:13 -0500 (EST)
From: Gregory Smith <wolfy@treellama.org>
To: sdl@libsdl.org
Subject: [SDL] Mac OS X fullscreen and fades

If I were to make a patch that lets you set an environment variable to 
disable the fades when changing to/from fullscreen modes on OS X, would it 
be feasible to include in CVS?

I realize those fades are there to hide any flickering that might occur, 
but they're painfully long, especially when trying to change resolutions 
mid-game.

Gregory
Comment 1 Sam Lantinga 2006-01-30 07:40:52 UTC
Go for it. :)
Comment 2 Christian Walther 2006-02-04 09:51:10 UTC
Created attachment 68 [details]
Fast Fade Patch

This is an improved version of Gregory's patch that adds a fast, asynchronous fade-through-black at every transition to or from a fullscreen mode, using Apple's fade API. It works well with my OpenGL app on 10.2, 10.3, and 10.4. It should work in 2D (non-OpenGL) mode too, but I only did minimal testing of that case.
(Here's the discussion on the mailing list, for the record: http://thread.gmane.org/gmane.comp.lib.sdl/25530 )
Comment 3 Ryan C. Gordon 2006-02-05 19:04:23 UTC
Tried it briefly here...fades faster, which is nice, and doesn't go back to the desktop when changing resolutions, which is nicer still.

If there are no objections, I'll apply this patch.

--ryan.
Comment 4 Sam Lantinga 2006-02-06 16:35:11 UTC
(In reply to comment #3)
> Tried it briefly here...fades faster, which is nice, and doesn't go back to the
> desktop when changing resolutions, which is nicer still.
> If there are no objections, I'll apply this patch.
> --ryan.

Please do!
Comment 5 Ryan C. Gordon 2006-02-07 06:18:36 UTC
It's now in CVS, thanks!

--ryan.