diff options
author | datalus <datalus.music@gmail.com> | 2015-04-30 18:52:48 -0500 |
---|---|---|
committer | datalus <datalus.music@gmail.com> | 2015-04-30 18:52:48 -0500 |
commit | 899e021666f9450d8fe07cd25207a4925be2af9f (patch) | |
tree | 6b98556565a3b27d4be0e6d813ef42c091b06bda /src/api/win32 | |
parent | c1ca5d1d87166daa20d4ae2a9a0a7c8d4ba2ba63 (diff) | |
download | glutin-899e021666f9450d8fe07cd25207a4925be2af9f.tar.gz glutin-899e021666f9450d8fe07cd25207a4925be2af9f.zip |
Adding SWP_NOMOVE flag to prevent the window from moving to 0,0 when setting the inner size on Windows 8+
Diffstat (limited to 'src/api/win32')
-rw-r--r-- | src/api/win32/mod.rs | 2 |
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); } } |