sf::VideoMode::getDesktopMode()
returning the monitor resolution on macOS
#2906
Labels
sf::VideoMode::getDesktopMode()
returning the monitor resolution on macOS
#2906
Prerequisite Checklist
Describe your issue here
My monitor resolution is 3420x2224 and my screen resolution is set to 1720x1112. The
sf::VideoMode::getDesktopMode()
is returning the correct screen resolution on Windows but it's returning the monitor resolution on macOS (in my case 3420x2224). I think it's related to thescaleOutXY
function in the cf_sf_conversion.mm file because theCGDisplayModeGetWidth()
andCGDisplayModeGetWidth()
functions returning the correct screen resolution values.Your Environment
Steps to reproduce
Expected behavior
The
sf::VideoMode::getDesktopMode()
should have return the screen resolution which is set by user.Actual behavior
The
sf::VideoMode::getDesktopMode()
returned the monitor resolution independently from screen resolution.The text was updated successfully, but these errors were encountered: