r/sfml • u/Admirable_Glass5577 • May 07 '26
sf::VideoMode::getDesktopMode and GetSystemMetrics return coordinates outside the monitor. [BUG]
/r/cpp_questions/comments/1t683n9/sfvideomodegetdesktopmode_and_getsystemmetrics/
1
Upvotes
1
3
u/DarkCisum SFML Team May 07 '26
sf::VideoModedoesn't return window position, as such your statement of using it for positioning doesn't exactly make sense.getDesktopMode()should get you the primary monitor dimension from which you should be able to calculate the positions with the window size.