Update orbclient to 0.3.14 on Redox (#55)

This commit is contained in:
Nagy Tibor 2018-05-16 08:12:32 +02:00 committed by Daniel Collin
parent f1bd963821
commit 5e16895b7d
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -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) => {