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 - SDL_SetDisplayMode not exported
Summary: SDL_SetDisplayMode not exported
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-30 16:28 UTC by augzilla
Modified: 2011-01-20 18:45 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 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.