Setting the screen resolution
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement