Skip to main content
gamedev.net
๐Ÿ”’ Locked

DEVMODE Multimonitor

Started by aznium Jan 19, 2007 at 3:15 PM 1 replies 1.1k views
Original Post
aznium
aznium
Hello, I am trying to change the resolution of my second monitor. I know to use DEVMODE and dmPosition, however the documentation is not clear on how to use it. How would i select my second monitor, would i got DEVMODE dmScreenSettings; dmScreenSettings.dmPosition.x = 2; dmScreenSettings.dmPosition.y = 0; or would i do dmScreenSettings.dmPosition.x = width_of_first_monitor; dmScreenSettings.dmPosition.y = 0; thanks
Colin Jeanne
Colin Jeanne
The documentation seems to indicate that your second method is correct. dmPosition is relative to desktop area and desktop area virtualized across physical display devices.

If you're still uncertain, you could always test the two pieces of code.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.