SFML community forums
Help => Window => Topic started by: marCOmics on June 11, 2017, 01:43:45 pm
-
Hallo again SFML community,
I ran into another problem. I made a project that starts in a window where multiple mini games are displayed, from which you can choose from which to start. Depending on the the game which is selected I wanted to resize the existing window through using the .setSize(sf::Vector2()) function.
But everything gets stretched with it, is there a way to prevent this (Except opening up a whole new window and shutting the old one down)?
Thanks in advance, I hope this wasn't asked already.
-
I hope this wasn't asked already
Almost every week ;)
And since the answer is in the official tutorials, you really have no excuse :P
https://www.sfml-dev.org/tutorials/2.4/graphics-view.php#showing-more-when-the-window-is-resized
-
Oh, then I'm sorry. I searched in the RendererWindow docu (https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Window.php#ab94ea32f22d15c0df11588e319de2546) but couldn't found it, my fault..
But thanks for the quick answer!!