windows: nitpicky code aesthetics
This commit is contained in:
parent
17a7477400
commit
888e3bdf0c
|
@ -189,13 +189,17 @@ impl Window {
|
|||
};
|
||||
|
||||
// todo: add check flags https://github.com/wrl/rutabaga/blob/f30ff67e157375cafdbafe5fb549f1790443a3a8/src/platform/win/window.c#L351
|
||||
let mut parent = null_mut();
|
||||
if let WithParent(p) = options.parent {
|
||||
parent = p;
|
||||
let parent = match options.parent {
|
||||
WithParent(p) => {
|
||||
flags = WS_CHILD | WS_VISIBLE;
|
||||
} else {
|
||||
p
|
||||
},
|
||||
|
||||
_ => {
|
||||
AdjustWindowRectEx(&mut rect, flags, FALSE, 0);
|
||||
null_mut()
|
||||
}
|
||||
};
|
||||
|
||||
let hwnd = CreateWindowExA(
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue