use with_title

This commit is contained in:
griffi-gh 2024-03-21 19:40:48 +01:00
parent c60775ff4d
commit b21184addf

View file

@ -1,5 +1,5 @@
use glam::{UVec2, Vec2}; use glam::{UVec2, Vec2};
use glium::{backend::glutin::SimpleWindowBuilder, Surface}; use glium::{Surface, backend::glutin::SimpleWindowBuilder};
use winit::{ use winit::{
event::{Event, WindowEvent}, event::{Event, WindowEvent},
event_loop::{EventLoopBuilder, ControlFlow} event_loop::{EventLoopBuilder, ControlFlow}
@ -35,9 +35,9 @@ pub fn ui<T>(
kubi_logging::init(); kubi_logging::init();
let event_loop = EventLoopBuilder::new().build().unwrap(); let event_loop = EventLoopBuilder::new().build().unwrap();
let (window, display) = SimpleWindowBuilder::new().build(&event_loop); let (window, display) = SimpleWindowBuilder::new()
.with_title(name)
window.set_title(name); .build(&event_loop);
let mut hui = UiInstance::new(); let mut hui = UiInstance::new();
let mut backend = GliumUiRenderer::new(&display); let mut backend = GliumUiRenderer::new(&display);