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 - DisplayMode calls broken on Mac
Summary: DisplayMode calls broken on Mac
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.6
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 06:51 UTC by Mike Kasprzak
Modified: 2011-02-24 09:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :)