RenderWindow win(VideoMode(400,200),"123");
Event ev;
win.setSize(Vector2u(150,150));
cout << win.GetSize().x << endl;
cout << win.GetSize().y << endl;
while(win.pollEvent(ev)){}
cout << win.GetSize().x << endl;
cout << win.GetSize().y << endl;
400
200
150
150
And question...
We directly call function to resize window, why window sizes changes only after Event logic.
Maybe some function can detect changed size before Event ?
I can get this using winAPI.... using win.getSystemHandle()... but its.... ok try do something )