mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 20:38:36 +00:00
Force background to consume self
This is to enforce the consistency WINDOW_DRAW_LIST_LOADED
This commit is contained in:
parent
ebeb92aa8e
commit
464557fdc6
@ -82,7 +82,7 @@ impl<'ui> WindowDrawList<'ui> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn background(&mut self) -> Self {
|
pub(crate) fn background(self) -> Self {
|
||||||
Self {
|
Self {
|
||||||
draw_list: unsafe { sys::igGetBackgroundDrawList() },
|
draw_list: unsafe { sys::igGetBackgroundDrawList() },
|
||||||
_phantom: PhantomData,
|
_phantom: PhantomData,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user