From b21184addf3871f7f856cbebf56e31cad5fd56ca Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 21 Mar 2024 19:40:48 +0100 Subject: [PATCH] use `with_title` --- hui-examples/boilerplate.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hui-examples/boilerplate.rs b/hui-examples/boilerplate.rs index afc36bd..86eec94 100644 --- a/hui-examples/boilerplate.rs +++ b/hui-examples/boilerplate.rs @@ -1,5 +1,5 @@ use glam::{UVec2, Vec2}; -use glium::{backend::glutin::SimpleWindowBuilder, Surface}; +use glium::{Surface, backend::glutin::SimpleWindowBuilder}; use winit::{ event::{Event, WindowEvent}, event_loop::{EventLoopBuilder, ControlFlow} @@ -35,9 +35,9 @@ pub fn ui( kubi_logging::init(); let event_loop = EventLoopBuilder::new().build().unwrap(); - let (window, display) = SimpleWindowBuilder::new().build(&event_loop); - - window.set_title(name); + let (window, display) = SimpleWindowBuilder::new() + .with_title(name) + .build(&event_loop); let mut hui = UiInstance::new(); let mut backend = GliumUiRenderer::new(&display);