mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-21 18:38:28 +00:00
Use only file names in example window titles
This commit is contained in:
parent
cebe02cb11
commit
09f4ad6cf0
@ -15,6 +15,10 @@ pub struct System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn init(title: &str) -> System {
|
pub fn init(title: &str) -> System {
|
||||||
|
let title = match title.rfind('/') {
|
||||||
|
Some(idx) => title.split_at(idx + 1).1,
|
||||||
|
None => title,
|
||||||
|
};
|
||||||
let events_loop = glutin::EventsLoop::new();
|
let events_loop = glutin::EventsLoop::new();
|
||||||
let context = glutin::ContextBuilder::new().with_vsync(true);
|
let context = glutin::ContextBuilder::new().with_vsync(true);
|
||||||
let builder = glutin::WindowBuilder::new()
|
let builder = glutin::WindowBuilder::new()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user