Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix obsolete functions for latest ImGui version #256

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix obsolete functions for latest ImGui version
Similarly to commit aefb7eb,
this fixes a call to the obsolete `CaptureMouseFromApp`.
  • Loading branch information
Aidiakapi authored Sep 8, 2022
commit e2bc419c8826a3d632d3974aab201b0fee770263
4 changes: 4 additions & 0 deletions ImSequencer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,11 @@ namespace ImSequencer
// moving
if (/*backgroundRect.Contains(io.MousePos) && */movingEntry >= 0)
{
#if IMGUI_VERSION_NUM >= 18723
ImGui::SetNextFrameWantCaptureMouse(true);
#else
ImGui::CaptureMouseFromApp();
#endif
int diffFrame = int((cx - movingPos) / framePixelWidth);
if (std::abs(diffFrame) > 0)
{
Expand Down