| Summary: | Initializing SDL 1.3 (Multimonitor) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sam Lantinga <slouken> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | vitto.giova |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
|
Description
Sam Lantinga
2011-01-25 11:02:26 UTC
I just did a bunch of work on multi-monitor and fullscreen support on Windows.
The way you set things up changed a little bit. Create each of your windows with the desired size and the fullscreen flag, and use this macro for the position: SDL_WINDOWPOS_CENTERED_DISPLAY(N), where N is the index of the display you want to create the window on.
e.g.
window = SDL_CreateWindow("Window on Monitor 1",
SDL_WINDOWPOS_CENTERED_DISPLAY(1),
SDL_WINDOWPOS_CENTERED_DISPLAY(1),
640, 480, SDL_WINDOW_FULLSCREEN|SDL_WINDOW_SHOWN);
Can you try the latest snapshot and see if this works for you?
http://www.libsdl.org/tmp/SDL-1.3.zip
Thanks!
|