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 1151

Summary: DisplayMode calls broken on Mac
Product: SDL Reporter: Mike Kasprzak <mike>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   

Description Mike Kasprzak 2011-02-24 06:51:22 UTC
SDL_GetDesktopDisplayMode and SDL_GetCurrentDisplayMode no longer work correctly on Mac.  Making a call as follows:

{
	SDL_DisplayMode DisplayMode;
	SDL_GetDesktopDisplayMode( &DisplayMode );

	// ... //
}

The DisplayMode structure will be filled with incorrect data (in my test case, 32767 x -2116798271 at 32767 Hz).
Comment 1 Sam Lantinga 2011-02-24 08:05:15 UTC
It sounds like mismatched data structures.  Things work fine here.  Have you tried doing a clean build after installing the new Framework?  Are you sure you're using matching headers and libraries?
Comment 2 Mike Kasprzak 2011-02-24 08:42:36 UTC
Oops!  Yes it was mismatched headers that was the problem.  I was doing something silly whilst trying to get SDL 1.2 and 1.3 working (letting me pick A or B).  It was working fine with HG build from a couple weeks ago, so I hadn't noticed the problem until now.
Comment 3 Sam Lantinga 2011-02-24 09:24:36 UTC
Great, I'm glad you figured it out. :)