Resolution probs

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Blade
Posts: 9
Joined: Wed Sep 05, 2007 4:07 pm

Resolution probs

Post by Blade »

Hi,

I run the irrlicht device in another window and want to resize it when the window size changes. therefore i call DRIVER->OnResize(..).
Unfortunatetly it doesn't work and the direct3d device is just throwing this error:
Could not reset Direct3D device

i'm using the Direct3D9 device btw. does anybody know where this error comes from?

and another question: how is resolution changed in irrlicht fullscreen mode? can i change to fullscreen during runtime?

thx
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I think the reason for the error is that you have created RTTs, which would have to be recreated for this case. You cannot change the fullscreen/windowed setting (except for by using the OS, in which case you will also face problems with device resetting), you have to create a new device with new settings.
Blade
Posts: 9
Joined: Wed Sep 05, 2007 4:07 pm

Post by Blade »

yes, i've created RTTs. thx
Post Reply