New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sf::VideoMode::getDesktopMode()
returning the monitor resolution on macOS
#2906
Comments
Have you read #2300 yet? If not then please read through that thread so you can get caught up with our progress on fixing this problem. I'm the SFML maintainer who uses macOS so I'm the one to talk to about fixing this. I'm eager to fix it but so far nobody is totally sure what the right fix is. |
I checked the current issues to prevent duplication. I saw that issue and I don't think it's related to the my problem. The |
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: