Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

NorthWoodsman

Setting the mode with multiple monitors

This topic is 5803 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Alright, so I''m trying to set the mode on a secondary monitor, and I''m having trouble. If I don''t include SetFocusWindow, it''ll set the primary display, even though I specify the secondary device. I have another form that enumerates the devices and sets up all the variables. This is my code (By the way, this app is in C#) device = Microsoft.DirectX.DirectDraw.Device
try
			{
				device.SetCooperativeLevel(Window, CooperativeLevelFlags.FullscreenExclusive
					| CooperativeLevelFlags.SetFocusWindow);
				device.SetDisplayMode(Width, Height, BPP, 60, false);
			}
			catch
			{
				device = null;
				return false;
			}
 
On a separate subject, do you notice the sloppy documentation for DDraw? I look up the SetCooperativeLevel enumeration, and it just lists the items! No description whatsoever.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!