SFML community forums

Help => General => Topic started by: Weeve on October 21, 2011, 08:30:43 pm

Title: How do I get the resolution of a screen?
Post by: Weeve on October 21, 2011, 08:30:43 pm
how do I get the pixel size of a screen? im making a full screen game based on a 32X32 pixel grid. I need to be able to find the centre, and set the background sprite's size accuratley
Title: How do I get the resolution of a screen?
Post by: Hiura on October 21, 2011, 09:09:36 pm
Get desktop size. http://www.sfml-dev.org/documentation/2.0/classsf_1_1VideoMode.php#acdc9c223fb5fcba8956bc6004addf3fa
Title: How do I get the resolution of a screen?
Post by: Weeve on October 22, 2011, 12:19:02 am
Thankyou! :D  I vote for re-naming of "desktop mode" to "screen mode"
Title: How do I get the resolution of a screen?
Post by: Laurent on October 22, 2011, 07:38:57 am
Quote
I vote for re-naming of "desktop mode" to "screen mode"

Depends what the "screen" is. To me, it refers to the physical monitor more than the OS desktop.