From 5e16895b7d5fdb604403586617cc64d4b1e21448 Mon Sep 17 00:00:00 2001 From: Nagy Tibor Date: Wed, 16 May 2018 08:12:32 +0200 Subject: [PATCH] Update orbclient to 0.3.14 on Redox (#55) --- Cargo.toml | 2 +- src/os/redox/mod.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d466dd..02a04e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,4 +64,4 @@ x11-dl = "~2.14" x11-dl = "~2.14" [target.x86_64-unknown-redox.dependencies] -orbclient = "0.3.4" +orbclient = "0.3.14" diff --git a/src/os/redox/mod.rs b/src/os/redox/mod.rs index ebc6984..ac75c42 100644 --- a/src/os/redox/mod.rs +++ b/src/os/redox/mod.rs @@ -59,18 +59,20 @@ impl Window { let window_width = width 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]; if opts.resize { window_flags.push(orbclient::WindowFlag::Resizable); } + if !opts.title { + window_flags.push(orbclient::WindowFlag::Borderless); + } let window_opt = orbclient::Window::new_flags(-1, -1, window_width, window_height, - window_name, + name, &window_flags); match window_opt { Some(window) => {