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 940

Summary: SDL_SetDisplayMode not exported
Product: SDL Reporter: augzilla
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   

Description augzilla 2010-01-30 16:28:20 UTC
Perhaps the following is by design, or perhaps it is an oversight.

SDL_SetDisplayMode doesn't have a prototype in SDL_video.h and hence isn't available in the API.  This makes it difficult (or impossible?) to use some of the new refresh rate functionality.

When I export the function and use it in my program, it works as expected on my (Windows7) machine.
Comment 1 Sam Lantinga 2010-07-12 22:03:05 UTC
This is by design.  You're not supposed to use the mode stuff without a fullscreen window, at least at the moment.  Is there a reason you need this?
Comment 2 Sam Lantinga 2011-01-20 18:45:50 UTC
No response for several months.  Please let me know if there's a reason you need to have direct access to this API.  Typically you associate a fullscreen mode with a window and then show the fullscreen window.