1
0
Fork 0

windows: nitpicky code aesthetics

This commit is contained in:
William Light 2020-09-11 18:32:55 +02:00
parent 17a7477400
commit 888e3bdf0c

View file

@ -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,