mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
change pointer type to plattform specific type as the cast is otherwi… (#212)
* change pointer type to plattform specific type as the cast is otherwise broken on ARM (and maybe other) platform. * shrink the line changed in previous commit to make linter happy Co-authored-by: Peter Hasse <peter.hasse@fokus.fraunhofer.de>
This commit is contained in:
parent
15bce84a4e
commit
65e5be1dcf
|
@ -420,8 +420,11 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.borderless {
|
if opts.borderless {
|
||||||
let hints_property =
|
let hints_property = (d.lib.XInternAtom)(
|
||||||
(d.lib.XInternAtom)(d.display, "_MOTIF_WM_HINTS\0" as *const _ as *const i8, 0);
|
d.display,
|
||||||
|
"_MOTIF_WM_HINTS\0" as *const _ as *const c_char,
|
||||||
|
0,
|
||||||
|
);
|
||||||
assert!(hints_property != 0);
|
assert!(hints_property != 0);
|
||||||
let mut hints: MwmHints = std::mem::zeroed();
|
let mut hints: MwmHints = std::mem::zeroed();
|
||||||
hints.flags = 2;
|
hints.flags = 2;
|
||||||
|
|
Loading…
Reference in a new issue