mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-10 02:51:32 +11:00
Update orbclient to 0.3.14 on Redox (#55)
This commit is contained in:
parent
f1bd963821
commit
5e16895b7d
|
@ -64,4 +64,4 @@ x11-dl = "~2.14"
|
||||||
x11-dl = "~2.14"
|
x11-dl = "~2.14"
|
||||||
|
|
||||||
[target.x86_64-unknown-redox.dependencies]
|
[target.x86_64-unknown-redox.dependencies]
|
||||||
orbclient = "0.3.4"
|
orbclient = "0.3.14"
|
||||||
|
|
|
@ -59,18 +59,20 @@ impl Window {
|
||||||
|
|
||||||
let window_width = width as u32 * window_scale as u32;
|
let window_width = width as u32 * window_scale as u32;
|
||||||
let window_height = height as u32 * window_scale as u32;
|
let window_height = height as u32 * window_scale as u32;
|
||||||
let window_name = if opts.title { name } else { "" };
|
|
||||||
|
|
||||||
let mut window_flags = vec![orbclient::WindowFlag::Async];
|
let mut window_flags = vec![orbclient::WindowFlag::Async];
|
||||||
if opts.resize {
|
if opts.resize {
|
||||||
window_flags.push(orbclient::WindowFlag::Resizable);
|
window_flags.push(orbclient::WindowFlag::Resizable);
|
||||||
}
|
}
|
||||||
|
if !opts.title {
|
||||||
|
window_flags.push(orbclient::WindowFlag::Borderless);
|
||||||
|
}
|
||||||
|
|
||||||
let window_opt = orbclient::Window::new_flags(-1,
|
let window_opt = orbclient::Window::new_flags(-1,
|
||||||
-1,
|
-1,
|
||||||
window_width,
|
window_width,
|
||||||
window_height,
|
window_height,
|
||||||
window_name,
|
name,
|
||||||
&window_flags);
|
&window_flags);
|
||||||
match window_opt {
|
match window_opt {
|
||||||
Some(window) => {
|
Some(window) => {
|
||||||
|
|
Loading…
Reference in a new issue