diff --git a/src/window_draw_list.rs b/src/window_draw_list.rs index 090e818..5a0cce4 100644 --- a/src/window_draw_list.rs +++ b/src/window_draw_list.rs @@ -82,7 +82,7 @@ impl<'ui> WindowDrawList<'ui> { } } - pub(crate) fn background(&mut self) -> Self { + pub(crate) fn background(self) -> Self { Self { draw_list: unsafe { sys::igGetBackgroundDrawList() }, _phantom: PhantomData,