Refactor win32 window state code (#730)
* Overhaul win32 window state * Fix warnings * Add CHANGELOG entry * Rephrase CHANGELOG entries * Fix 1.28.0 build * Remove WS_POPUP styling * Slight style correction * Make set_maximized work * Fix rect restore not working after winit set_maximized call * Add a few comments
This commit is contained in:
parent
c91dfdd6fe
commit
7be1d16263
9 changed files with 661 additions and 608 deletions
|
|
@ -99,7 +99,7 @@ impl Window {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_monitor_info(hmonitor: HMONITOR) -> Result<winuser::MONITORINFOEXW, util::WinError> {
|
||||
pub(crate) fn get_monitor_info(hmonitor: HMONITOR) -> Result<winuser::MONITORINFOEXW, util::WinError> {
|
||||
let mut monitor_info: winuser::MONITORINFOEXW = unsafe { mem::uninitialized() };
|
||||
monitor_info.cbSize = mem::size_of::<winuser::MONITORINFOEXW>() as DWORD;
|
||||
let status = unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue