Hello, all together…
I’ve got yet another question to SDL 1.3 an it’s multimonitor support.
I’ve searched the archive and the web as well, but there’s still a
question left:
On Win32, what’s the correct sequence of commands for creating 2 or more
fullscreen Windows?
So far, here’s what I got:
- SDL_Init (of course…)
- SDL_GetNumVideoDisplays()
- Select the appropriate display and Create a Window with specified size
and SDL_WINDOW_FULLSCREEN flag - Do some tasks and call SDL_ShowWindow
It work’s great if all Windows are created with the same size as the
resolution of the desktop of every screen was at the time of
initializing SDL, but when I try to specify some other size (800x600
Pixels e.g. on former 1280x1024 and 1024x768 displays), the first Window
get’s positioned correctly, but the seccond one is initialized at 480
pixels right of the top left corner of the 2. screen (1280-800). A
second problem is, that somehow the Event-Queue gets filled with events
if that happens, and the SDL_PollEvent command never returns from the
first call…
I took a look a the code and as far as I could understand it, the
position of a newly created Window is calculated using the coordinates
of the desktop-position of every display, which is being read on
initialization of SDL - is that correct?
At the moment, my workaround is to set all displays to the desired
resolution prior to SDL initialization using standard Windows-API, is
there any more elegant solution using SDL, or did I miss something?
I hope I didn’t mess up with some other facts here - anyhow, thanks in
advance for your thoughts…
Best regards,
Alexander Hofmann.
PS: As you might already have noticed, I’m no native English speaker; so
please excuse any bad mistakes…
-------------- next part --------------
A non-text attachment was scrubbed…
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110125/634816b1/attachment.pgp