Force background to consume self

This is to enforce the consistency WINDOW_DRAW_LIST_LOADED
This commit is contained in:
Zhaoxian Li 2020-06-21 22:30:29 +08:00
parent ebeb92aa8e
commit 464557fdc6

View File

@ -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,