DirectX Question - Windowed vs Fullscreen Mode

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2008
Posts: 16
Reputation: Dinomike1000 is an unknown quantity at this point 
Solved Threads: 0
Dinomike1000 Dinomike1000 is offline Offline
Newbie Poster

DirectX Question - Windowed vs Fullscreen Mode

 
0
  #1
Dec 22nd, 2008
I'm writing an application with Directx 9. Where I start the application in full screen mode, the image fills to fullscreen and then immediately reverts into a regular window. There aren't any problems when I run the application in windowed mode from the start.

I was wondering if anyone has any ideas as to what may be causing this.

Some things to note are that I am running the debug version of directx and I am doing everything on one monitor. The fullscreen mode problem still occurs if I "Run without debugging"

Thanks,

Mike
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 671
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: DirectX Question - Windowed vs Fullscreen Mode

 
0
  #2
Dec 22nd, 2008
What exactly do you mean, 'the image'. It could be a whole host of reasons.

Chris
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 16
Reputation: Dinomike1000 is an unknown quantity at this point 
Solved Threads: 0
Dinomike1000 Dinomike1000 is offline Offline
Newbie Poster

Re: DirectX Question - Windowed vs Fullscreen Mode

 
0
  #3
Dec 22nd, 2008
Yay I figured it out. What was happening was that the graphics device was setup to go into fullscreen mode; after filling up the screen with the background (ie fullscreen), the window immediately switched back to a regular window with a menu at the top.

I'm still testing some of the functions, so I was doing everything in the Init() cycle. I was closing the graphics interface/device at the end of the Init() cycle. This had no effect on windowed mode, but I guess if the device is closed while in fullscreen mode and the application is still running, then the fullscreen window changes back to a regular window.
Last edited by Dinomike1000; Dec 22nd, 2008 at 6:18 pm.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 671
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: DirectX Question - Windowed vs Fullscreen Mode

 
0
  #4
Dec 22nd, 2008
Have you made sure that your Window is actually in full screen, with borders etc removed? My guess is you are making your drawing space 3D but not the actual window.

You window should have properties that resemble the following.
  1. hWnd = CreateWindowEx(NULL, L"WindowClass", L"Basic Window",
  2. WS_EX_TOPMOST | WS_POPUP, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
  3. NULL, NULL, hInstance, NULL);

WS_EX_TOPMOST, making sure it is on top. Above start bar etc. WS_POPUP removes the borders etc, SCREEN WIDTH & SCREEN_HEIGHT are self explanatory. basically the resolution.

Chris
Last edited by Freaky_Chris; Dec 22nd, 2008 at 7:02 pm.
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC