From 3d8c7bd0c92411c4ef12843ee7840a04febecf62 Mon Sep 17 00:00:00 2001 From: Aggelos Tselios <89304706+AndroGR@users.noreply.github.com> Date: Mon, 27 Mar 2023 00:45:14 +0300 Subject: [PATCH] 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 Co-authored-by: Aggelos Tselios --- examples/imgui-winit/src/gui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/imgui-winit/src/gui.rs b/examples/imgui-winit/src/gui.rs index 969d49d..e90e507 100644 --- a/examples/imgui-winit/src/gui.rs +++ b/examples/imgui-winit/src/gui.rs @@ -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 {