• Advertisement
Sign in to follow this  

Setting the screen resolution

This topic is 4786 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
You set it via the present parameters when creating the D3D device.

Share this post


Link to post
Share on other sites
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