SFML community forums

Help => Window => Topic started by: alinuxoid on April 04, 2016, 10:40:42 pm

Title: Window size changing
Post by: alinuxoid on April 04, 2016, 10:40:42 pm
How to disable window size changing? Working with sf::RenderWindow and don't see methods which should do this.
Title: Re: Window size changing
Post by: Tukimitzu on April 04, 2016, 10:49:06 pm
On the creation method, for the sf::Style parameter:
sf::Style::Default ^ sf::Style::Resize
Title: Re: Window size changing
Post by: alinuxoid on April 04, 2016, 11:09:16 pm
Thanks. Works fine (i am newbie in SFML, almost always using GTK+ in Vala, but already know C (and, partially, C++). So, thanks. (trying to use low-level library for my own project, which requires low-level code)
Title: Re: Window size changing
Post by: Laurent on April 05, 2016, 06:18:07 am
The more idiomatic and more correct expression would be
sf::Style::Default & ~sf::Style::Resize

Unlike the other expression, it also works if the Resize bit is not part of Default. It's also clearer about the intention of the developer ;)