SFML community forums

Bindings - other languages => DotNet => Topic started by: Kaphonaits on November 02, 2014, 02:10:46 am

Title: Window sizes not accurate
Post by: Kaphonaits on November 02, 2014, 02:10:46 am
If i create a renderWindow at 1024x768, sizer (http://www.brianapps.net/sizer/) reports it to be at 1040x806. why is this?
Title: Re: Window sizes not accurate
Post by: FRex on November 02, 2014, 03:36:51 am
It's because windows are not just the content, they are also decorated, they have the borders, the titlebar and a bunch of buttons (close, minimize, etc.).
The size you get/set in SFML is just the size of the content (the rendering area) itself, it doesn't include the decorations.

There are some mentions of this in http://sfml-dev.org/documentation/2.1/classsf_1_1RenderWindow.php

Oh, and this is not .NET specific, it happens in all languages.