Force background to consume self
This is to enforce the consistency WINDOW_DRAW_LIST_LOADED
@@ -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,
