Sign in to follow this  
ferrer

Focus Windowed to Fullscreen Error

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this