aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-05-01 07:21:55 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-05-01 07:21:55 +0200
commit10af3ca8b4102641017d94440280ca87b347b0dd (patch)
tree6b98556565a3b27d4be0e6d813ef42c091b06bda /src
parentc1ca5d1d87166daa20d4ae2a9a0a7c8d4ba2ba63 (diff)
parent899e021666f9450d8fe07cd25207a4925be2af9f (diff)
downloadglutin-10af3ca8b4102641017d94440280ca87b347b0dd.tar.gz
glutin-10af3ca8b4102641017d94440280ca87b347b0dd.zip
Merge pull request #416 from datalus/master
Adding SWP_NOMOVE flag to prevent the window from moving to 0,0 when setting inner size on Windows 8
Diffstat (limited to 'src')
-rw-r--r--src/api/win32/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs
index e6f5cb8..d0caea7 100644
--- a/src/api/win32/mod.rs
+++ b/src/api/win32/mod.rs
@@ -197,7 +197,7 @@ impl Window {
unsafe {
user32::SetWindowPos(self.window.0, ptr::null_mut(), 0, 0, x as libc::c_int,
- y as libc::c_int, winapi::SWP_NOZORDER | winapi::SWP_NOREPOSITION);
+ y as libc::c_int, winapi::SWP_NOZORDER | winapi::SWP_NOREPOSITION | winapi::SWP_NOMOVE);
user32::UpdateWindow(self.window.0);
}
}