Skip to content

Commit

Permalink
Merge branch 'master' into refactor_backends
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/hello_imgui/internal/backend_impls/abstract_runner.cpp
  • Loading branch information
pthom committed Dec 29, 2023
2 parents 72f4d7f + 07ee9cc commit 9e0bf35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,12 @@ void AbstractRunner::SetImGuiPrefs()
ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;
#endif
}
ImGui::GetIO().IniFilename = nullptr;

#ifndef IMGUI_BUNDLE_PYTHON_API
ImGui::GetIO().IniFilename = NULL;
#else
ImGui::GetIO().IniFilename = "";
#endif
}

void AbstractRunner::Setup()
Expand Down Expand Up @@ -734,7 +739,7 @@ bool AbstractRunner::ShallIdleThisFrame_Emscripten()
ImGuiContext& g = *GImGui;
bool hasInputEvent = ! g.InputEventsQueue.empty();

if (! params.fpsIdling.enableIdling)
if (! params.fpsIdling.enableIdling || (params.fpsIdling.fpsIdle <= 0.f) )
{
params.fpsIdling.isIdling = false;
return false;
Expand Down
1 change: 0 additions & 1 deletion src/hello_imgui/internal/menu_statusbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,5 @@ void ShowStatusBar(RunnerParams & params)
ImGui::End();
}


} // namespace Menu_StatusBar
} // namespace HelloImGui

0 comments on commit 9e0bf35

Please sign in to comment.