mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Relax frame lifetime
This commit is contained in:
parent
822305ef4e
commit
35a8324f78
@ -87,7 +87,7 @@ impl ImGui {
|
||||
let io: &mut ffi::ImGuiIO = unsafe { mem::transmute(ffi::igGetIO()) };
|
||||
io.mouse_down = *states;
|
||||
}
|
||||
pub fn frame<'a>(&'a mut self, width: u32, height: u32, delta_time: f32) -> Frame<'a> {
|
||||
pub fn frame<'a>(&mut self, width: u32, height: u32, delta_time: f32) -> Frame<'a> {
|
||||
unsafe {
|
||||
let io: &mut ffi::ImGuiIO = mem::transmute(ffi::igGetIO());
|
||||
io.display_size.x = width as c_float;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user