Skip to content

Commit

Permalink
Actually fix build
Browse files Browse the repository at this point in the history
ImGuiHoveredFlags_Default isn't a valid identifier. It seems it perhaps was at some point, but the
flag that's in the api is ImGuiHoveredFlags_None. I see the former mentioned in ocornut#1382,
and its description is the same as what is now given to None.
  • Loading branch information
Vultraz committed Mar 6, 2022
1 parent 7b7b65e commit 2379a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgui_user.inl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace ImGui
if (!ItemAdd(bb, 0))
return 0;

const bool hovered = IsItemHovered(ImGuiHoveredFlags_Default);
const bool hovered = IsItemHovered(ImGuiHoveredFlags_None);

int max = 0;
while (max < maxpoints && points[max].x >= 0) max++;
Expand Down Expand Up @@ -248,7 +248,7 @@ namespace ImGui
return 0;
}

const bool hovered = IsItemHovered(ImGuiHoveredFlags_Default);
const bool hovered = IsItemHovered(ImGuiHoveredFlags_None);

int max = 0;
while (max < maxpoints && points[max].x >= 0) {
Expand Down

0 comments on commit 2379a8b

Please sign in to comment.