diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-01 07:21:55 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-01 07:21:55 +0200 |
commit | 10af3ca8b4102641017d94440280ca87b347b0dd (patch) | |
tree | 6b98556565a3b27d4be0e6d813ef42c091b06bda /src | |
parent | c1ca5d1d87166daa20d4ae2a9a0a7c8d4ba2ba63 (diff) | |
parent | 899e021666f9450d8fe07cd25207a4925be2af9f (diff) | |
download | glutin-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.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); } } |