SFML community forums

Help => Graphics => Topic started by: strongdrink on March 07, 2011, 12:29:05 am

Title: Images/Sprites change size when I resize the window.
Post by: strongdrink on March 07, 2011, 12:29:05 am
Hello, I am new to SFML, and so far, I like it (more than SDL :D)
BUT! I am having a problem..

I am trying to make my app so if you resize the window, the images on the screen stay the same size. How would I go about doing this? Using veiws? Re-drawing the whole window?  :S

Thanks in advance!
Title: Images/Sprites change size when I resize the window.
Post by: Nexus on March 07, 2011, 01:50:35 am
If you don't want to adapt every object on the screen, manipulating sf::View is probably the simplest way. You can react to SFML's resize event by resizing your view correspondingly.
Title: Images/Sprites change size when I resize the window.
Post by: strongdrink on March 07, 2011, 01:59:50 am
thanks