Two monitors

Hello,

I have two monitors (let’s call them primary and secondary), and I am
interested in displaying a fullscreen image on the secondary monitor
only. Is this possible in SDL 1.2, or only in SDL 1.3? Does anyone
have an example of how to do this? I couldn’t figure it out from the
documentation.

Thanks in advance for any advice.

Sincerely,
Arthur Edelstein

i had the same problem 2 years ago, but i cant remember if there was a sdl
specific solution. all i know is that i ended up using my own window-class.
you need to place the fullscreen window at x,y coordinates, where the secondary
monitor under windows would be (with extended desktop)
i.e. primary monitor = 1280x1024, secondary is 800x600, then open a fullscreen
window at

x = 1280, y = 0 with w = 800 and h = 600

i use my own function for that:

Win32_Gl_Window glwindow(
options.fullscreen.x,
options.fullscreen.y,
options.fullscreen.w,
options.fullscreen.h,"",false,false);

see attached file. its a single header-file and thus should be easily integrate
into your project.

hope that helps,
andre

Arthur D. Edelstein wrote:

Hello,

I have two monitors (let’s call them primary and secondary), and I am
interested in displaying a fullscreen image on the secondary monitor
only. Is this possible in SDL 1.2, or only in SDL 1.3? Does anyone
have an example of how to do this? I couldn’t figure it out from the
documentation.

Thanks in advance for any advice.

Sincerely,
Arthur Edelstein


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: win32_gl_window_multimon.h
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090517/0d911804/attachment.asc