mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
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
This commit is contained in:
commit
10af3ca8b4
|
@ -197,7 +197,7 @@ impl Window {
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
user32::SetWindowPos(self.window.0, ptr::null_mut(), 0, 0, x as libc::c_int,
|
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);
|
user32::UpdateWindow(self.window.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue