Skip to main content
GameDev.net gamedev.net
🔒 Locked

Window Mode

Started by Melinda Jan 27, 2003 at 12:27 PM 1 replies 200+ views
Original Post
Melinda
Melinda
I wish to debug my fullscreen ddraw app but it always locks up how can i convert a fullscreen dx app to a widow mode? Thanks Mel
Turt99
Turt99
http://www.gamedev.net/reference/articles/article960.asp

this article and the second part of this article can be found in the "Articles & Resources" section here at Gamedev..

I used this article to figure it out, this one is actually a step above, because this will let you switch, but it will definity help you find some clues as to what you need to change..


Please visit Turt99 Productions
FOLLOW ME ON TWITTER OR MY BLOG
Zern
Zern
Well, among other flags you have to set, be sure you set the
Windowed flag of the D3DPRESENT_PARAMETERS to TRUE, and set the backbufferformat to match the desktop display format.


i.e.


    

D3DPRESENT_PARAMETERS d3dpp;
ZeroMemory( &d3dpp, sizeof(d3dpp) );
d3dpp.Windowed = TRUE;
d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;





Also don't forget to actually create your window you will use to render to with Height and Width parameters, as you did not need to with fullscreen.



Edit: This is assuming you don't want to start up in full screen then switch to windowed mode .

[edited by - Zern on January 27, 2003 1:38:53 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.