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:
parent
96eef39a7a
commit
3d8c7bd0c9
|
@ -82,7 +82,7 @@ impl Gui {
|
||||||
context: &PixelsContext,
|
context: &PixelsContext,
|
||||||
) -> imgui_wgpu::RendererResult<()> {
|
) -> imgui_wgpu::RendererResult<()> {
|
||||||
// Start a new Dear ImGui frame and update the cursor
|
// 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();
|
let mouse_cursor = ui.mouse_cursor();
|
||||||
if self.last_cursor != mouse_cursor {
|
if self.last_cursor != mouse_cursor {
|
||||||
|
|
Loading…
Reference in a new issue