Sign in to follow this  

Setting the screen resolution

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

This topic is 4711 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this