Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] MDX fullscreen

Started by Bytez May 24, 2006 at 4:39 AM 4 replies 700+ views
Original Post
Bytez
Bytez
hi, im having problems getting my mdx c# app to run in fullscreen... windowed is fine, could anyone please post a tiny example of a fullscreen setup? thanks
Machaira
Machaira
What's wrong with the SDK samples? Also, why not just post your code so we can see what you're doing?
Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development
u235
u235
Generally a fullscreen app can be made by setting a few fields in the PresentParameters of your app. Namely, set windowed to false and BackBufferWidth/BackBufferHeight to the desired resolution you want your app to run at. Hope that helps.

-AJ
V/R,-AJThere are 10 kinds of people in the world: Those who understand binary and those who don't...
remigius
remigius
U235's reply covers what you need, but be aware that the backbuffer width & height have to be supported by your adapter. You can obtain the current desktop resolution for this through System.Windows.Forms.Screen.Primary.Bounds.

Also check this recent thread for more info and pitfalls.
RipTorn
RipTorn
you will also need to disable the window border of your Form when going to full screen (set the FormBorderstyle to None)

Topic Locked

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

Sign in to reply to this topic.