Skip to content

fix: calling two-parameter version of ImGuiTextFilter::Draw() - #196

Merged
brenocq merged 1 commit into
mainfrom
fix/textfilter-draw
Sep 24, 2026
Merged

brenocq merged 1 commit into
mainfrom
fix/textfilter-draw

Conversation

@brenocq

@brenocq brenocq commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

ImGui removed the float width parameter of ImGuiTextFilter::Draw() (ocornut/imgui@a14bebd), so the two-argument call in the style editor no longer compiles against recent ImGui when obsolete functions are disabled.

Fixed by setting the width with ImGui::SetNextItemWidth() before the one-argument Draw() call — behavior-identical and valid on all supported ImGui versions. Mirrors the same fix in ImPlot (epezent/implot#721).

ImGui removed the `float width` parameter of `ImGuiTextFilter::Draw()` (ocornut/imgui@a14bebd), so the two-argument call in the style editor fails to compile against recent ImGui builds that disable obsolete functions. Set the width with `ImGui::SetNextItemWidth()` before the one-argument call instead; it behaves identically and compiles on all supported ImGui versions.

Mirrors the same fix in ImPlot (epezent/implot#721).
@github-actions github-actions Bot added the status:review The task is under review label Sep 24, 2026
@brenocq brenocq changed the title Fix calling two-parameter version of ImGuiTextFilter::Draw() fix: calling two-parameter version of ImGuiTextFilter::Draw() Sep 24, 2026
@brenocq
brenocq merged commit 5c6b11e into main Sep 24, 2026
10 checks passed
@brenocq
brenocq deleted the fix/textfilter-draw branch September 24, 2026 19:05
@github-actions github-actions Bot added status:done Task completed successfully and removed status:review The task is under review labels Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:done Task completed successfully

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant