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
|
// todo: add check flags https://github.com/wrl/rutabaga/blob/f30ff67e157375cafdbafe5fb549f1790443a3a8/src/platform/win/window.c#L351
|
||||||
let mut parent = null_mut();
|
let parent = match options.parent {
|
||||||
if let WithParent(p) = options.parent {
|
WithParent(p) => {
|
||||||
parent = p;
|
flags = WS_CHILD | WS_VISIBLE;
|
||||||
flags = WS_CHILD | WS_VISIBLE;
|
p
|
||||||
} else {
|
},
|
||||||
AdjustWindowRectEx(&mut rect, flags, FALSE, 0);
|
|
||||||
}
|
_ => {
|
||||||
|
AdjustWindowRectEx(&mut rect, flags, FALSE, 0);
|
||||||
|
null_mut()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
let hwnd = CreateWindowExA(
|
let hwnd = CreateWindowExA(
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue