Jump to content
  • Advertisement
Sign in to follow this  
nickwinters

Setting the screen resolution

This topic is 5079 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

I'm using pDirect3D->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm); to get the screen size and set the buffers in full screen. However, my screen has a higher resolution than what I want to run the game in. Is there an equivalent SetAdapterDisplayMode? Code complete isn't pulling up anything. Thanks. -Nick

Share this post


Link to post
Share on other sites
Advertisement
The width/height/color-depth information can be specified in the D3DPRESENT_PARAMETERS structure that is used in two functions, CreateDevice() and Reset(). The structure contains three members, BackBufferWidth, BackBufferHeight, and BackBufferFormat, that are relevant to your inquiry. Most examples probably just use the values obtained from GetAdapterDisplayMode(), but this is by no means mandatory.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!