mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-13 00:24:20 +00:00
BeginTooltip: correctly testing return value of BeginTooltipEx() even though it always return true in current code.
Amend 3b2f617
This commit is contained in:
parent
c426e32247
commit
552969e33e
2 changed files with 4 additions and 2 deletions
|
|
@ -9942,7 +9942,8 @@ void ImGui::EndTooltip()
|
|||
|
||||
void ImGui::SetTooltipV(const char* fmt, va_list args)
|
||||
{
|
||||
BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None);
|
||||
if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None))
|
||||
return;
|
||||
TextV(fmt, args);
|
||||
EndTooltip();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue