ClientRectangle should not affect window location

Fixes issue #13
This commit is contained in:
Stefanos A. 2013-12-05 17:44:13 +01:00
parent 1812024594
commit f32aee7497

View file

@ -787,7 +787,6 @@ namespace OpenTK.Platform.Windows
WindowStyle style = (WindowStyle)Functions.GetWindowLong(window.Handle, GetWindowLongOffsets.STYLE);
Win32Rectangle rect = Win32Rectangle.From(value);
Functions.AdjustWindowRect(ref rect, style, false);
Location = new Point(rect.left, rect.top);
Size = new Size(rect.Width, rect.Height);
}
}