SFML community forums

Help => General => Topic started by: Kosmos on December 23, 2012, 01:33:28 pm

Title: Lock window resize, and software resize
Post by: Kosmos on December 23, 2012, 01:33:28 pm
Hello,

I want to lock the user from resizing the window, and do the resizing from the code.

Changing the resolution with a videomode will just make the window have more/less pixels which I don't want.

What I want to do is scale it from my program, instead of automatically when resizing the window with the mouse.

Thanks,
Kosmos.
Title: AW: Lock window resize, and software resize
Post by: eXpl0it3r on December 23, 2012, 03:09:52 pm
Don't specify sf::Style::Resize and use window.setSize to change the size.
Also check the documentation (http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php). ;)