
GameWindow Width and Height properties are inconsistent
Posted Friday, 18 December, 2009 - 21:35 by johnmattsson| Project: | The Open Toolkit library |
| Version: | 1.0-beta-3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
There was a forum thread about this issue and the Fiddler wrote:
"The Width and Height parameters reflect to the whole window, not just the client area. The ability to set the client area directly has been added to OpenTK 0.9.9: use the ClientRectangle and ClientSize properties."
"Closing issues fixed in 0.9.9-2"
But I get similar issues in 1.0 beta 2. (I'm using Windows 7 x64). The Width and Height properties seems to be inconsistently treated as both Size and ClientSize.
- get returns ClientSize, but set seems to affect Size.....
- if Width is set, Height will also be set (would not be an issue if get/set was consistent)
These three statements gives equivalent results:
Width = Width; Height = Height; Size = ClientSize;
the GameWindow shrinks...
/John


Comments
#1
Thanks for the bug report, fixed in r2565.
#2
Closing issues fixed in opentk-1.0-beta-3.