hi,
I had to test the example of SFML2.0,
when i going to full screen
I found a problem that resolution of desktop (PC) and VideoMode of SFML RenderWindow do not match .
I use a tablet pc, I was changing the UI scale of Windows
resolution of Device(PC) : 1080p modifyed resolution : 720p (Maybe..,expected)
I change the Text Size and ui items in this options(window
: Control Panel > Display
and modifyed text size to 150%
-
code:
const int gameWidth = 1920;
const int gameHeight = 1080;
const VideoMode gameDisplay = VideoMode::getDesktopMode();
. . .
sf::RenderWindow window(sf::VideoMode(gameDisplay.width,gameDisplay.height,gameDisplay.bitsPerPixel), "Pong",sf::Style::Fullscreen);
//window.setVerticalSyncEnabled(true);
result :
redpaddle is the view outside
image :
-
in other games(ex:Osu!) support the auto resolution scaling , please give me some solutions.