mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
* Windows: implement with_resizable (#540) * Fixed typo
This commit is contained in:
committed by
Francesca Frangipane
parent
bbfe57400d
commit
58a00bffbb
@@ -843,6 +843,10 @@ unsafe fn init(
|
||||
style | winuser::WS_VISIBLE
|
||||
};
|
||||
|
||||
if !window.resizable {
|
||||
style &= !winuser::WS_SIZEBOX;
|
||||
}
|
||||
|
||||
if pl_attribs.parent.is_some() {
|
||||
style |= winuser::WS_CHILD;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user