use with_title

This commit is contained in:
griffi-gh 2024-03-21 19:40:48 +01:00
parent 33d161500f
commit 37345577d3

View file

@ -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<T>(
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);