Switch from imgui.frame to imgui.new_frame, (#353)

The documentation said to do so: https://docs.rs/imgui/latest/imgui/struct.Context.html\#method.frame.

Signed-off-by: Aggelos Tselios <androtechgr@gmail.com>
Co-authored-by: Aggelos Tselios <androtechgr@gmail.com>
This commit is contained in:
Aggelos Tselios 2023-03-27 00:45:14 +03:00 committed by GitHub
parent 96eef39a7a
commit 3d8c7bd0c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ impl Gui {
context: &PixelsContext,
) -> imgui_wgpu::RendererResult<()> {
// Start a new Dear ImGui frame and update the cursor
let ui = self.imgui.frame();
let ui = self.imgui.new_frame();
let mouse_cursor = ui.mouse_cursor();
if self.last_cursor != mouse_cursor {