I have been looking into supporting different screen resolutions with SFML, with which I don't have a lot of experience. In order to do this, I decided to opt for a 1920x1024 resolution, then scale to the appropriate resolution accordingly by changing the size of the window. However, I've been running into a bit of a problem. The following code doesn't actually resize the window that is created with its call to setSize;
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
int main(){
sf::RenderWindow w(sf::VideoMode(1920,1024,32),"Window");
w.setSize(sf::Vector2u(800,600));
w.display();
sf::sleep(sf::seconds(5));
}
I know that oversized windows do not display properly due to OS restrictions, but does this also prevent them from being resized? If so, what is the best way to handle resolutions that are larger than the development screen size? Thanks so much, any help or input would be much appreciated.