diverlin / ParticleEditor2D

Qt based 2D particle editor for Urho3D
Other
0 stars 0 forks source link

when do resize, the render area is not fit the full QWidget size #2

Open diverlin opened 6 years ago

diverlin commented 6 years ago

also render area occupy not full space of QWidget at start

diverlin commented 6 years ago

it looks like it's issue of SDL2, but i am not sure. when we resize the central widget size of QWidget which is used as external window for Urho3D, then SDL2 internally by using method SDL_GetWindowSize(window, &w, &h) is not able to fetch the actual size anymore. and due to this the Urho3D render area is not change it's size to fit the new size of QWidget. There is only one way to change the render area size is to apply fix size for QWIdget before Urho3D engine initialization (used currently as workaround)