Jump to content
  • Advertisement
Sign in to follow this  
ferrer

Focus Windowed to Fullscreen Error

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

Has anybody seen this error before? Direct3D9: (ERROR) :Can't Reset a Device w/o Focus window to Fullscreen I guess it means I'm losing focus on my window. My game is actually starts windowed and then I make it go fullscreen but fails with this error. Any ideas? Thanks

Share this post


Link to post
Share on other sites
Advertisement
It actually sounds like you're not specifying a target window for the device.

Share this post


Link to post
Share on other sites
Hooray for access to the source code [grin]!

That error is emitted when the focus window is NULL (Which is the HWND passed to CreateDevice() and the present params specify fullscreen, and you're not using D3D9Ex.

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Hooray for access to the source code [grin]!

That error is emitted when the focus window is NULL (Which is the HWND passed to CreateDevice() and the present params specify fullscreen, and you're not using D3D9Ex.


I didn't even need to see the source code, because I'm just that awesome. [cool]

Share this post


Link to post
Share on other sites
The window handle is not NULL. Remember the game starts out windowed. Here is another piece of information is that if i start the game in fullscreen then i can go windowed and back again fine.

Share this post


Link to post
Share on other sites
Found the problem. There are two places to set the windows handle one in the presentation parameters and the other is in createdevice itself.

thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!