ClientRectangle should not affect window location
authorStefanos A. <stapostol@gmail.com>
Thu, 5 Dec 2013 16:44:13 +0000 (17:44 +0100)
committerStefanos A. <stapostol@gmail.com>
Thu, 5 Dec 2013 16:44:13 +0000 (17:44 +0100)
Fixes issue #13

Source/OpenTK/Platform/Windows/WinGLNative.cs

index da59889f8a39febdfd86b6370f64c4d3aece904c..aae5d109eb6e20150c0c082c391411d5fef95012 100644 (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);
             }
         }