Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


I'm having trouble getting DX8 fullscreen

This topic is 5615 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 going through "The Zen of Direct3D Game Programming" (please no commentary on this) and I have run into a snag.
  	// The format of the back buffer

	d3dpp.BackBufferFormat = bWindowed ? d3ddm.Format : FullScreenFormat;

	// The number of back buffers

	d3dpp.BackBufferCount = 1;

	// The type of multisampling

	d3dpp.MultiSampleType = D3DMULTISAMPLE_NONE;
	// The swap effect

	d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
	// The handle to the window that we want to render to 

	d3dpp.hDeviceWindow = hWndTarget;	
	// Windowed or fullscreen

	d3dpp.Windowed = bWindowed;  
I''m thinking it has to do with the "bWindowed" parameter as I fill out the structure. This code is in my Direct3DInit function and yes I am passing D3DFORMAT FullScreenFormat into that function. Seeing as I can''t do anything until I get to full screen some help would be much appreciated.

Share this post

Link to post
Share on other sites
I''m pretty sure if you want fullscreen mode you also have to set the BackBufferWidth and BackBufferHeight things.

if (!bWindowed)
d3dpp.BackBufferWidth = FullScreenWidth;
d3dpp.BackBufferHeight = FullScreenHeight;

or something like that. Then Direct3D should switch resolutions for you and whatnot.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!