I was resizing my sprite to fit my window using:
Sprite.Scale((float)Window.GetWidth()/(float)Sprite.GetImage()->GetWidth(), (float)Window.GetHeight()/(float)Sprite.GetImage()->GetHeight());
and then
Sprite.Resize(Window.GetWidth(), Window.GetHeight());
when the sf::Event::Resize event is dispatched.
However, I have noticed that when I resize the window smaller than the video mode, the sprite no longer fits the screen. Why is this? And is there anything I can do about it?
Also, for the sf::Event::Resize event, what is the relevance of the values Event::Size::Width and Event::Size::Height. Surely they are the same as the values returned by Window::GetWidth() and Window::GetHeight()?