Skip to content

Commit

Permalink
Merge pull request #416 from datalus/master
Browse files Browse the repository at this point in the history
Adding SWP_NOMOVE flag to prevent the window from moving to 0,0 when setting inner size on Windows 8
  • Loading branch information
tomaka committed May 1, 2015
2 parents c1ca5d1 + 899e021 commit 10af3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/win32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 10af3ca

Please sign in to comment.