2
0
Эх сурвалжийг харах

Removed another msileading difference between the hovered functions (IsWindowContentHoverable() uses the root window already). Sorry for the commit spam! (making small commit to easily be able to Bisect those in case I make a mistake)

omar 8 жил өмнө
parent
commit
2159629e9e
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -1999,7 +1999,7 @@ bool ImGui::IsHovered(const ImRect& bb, ImGuiID id)
         return false;
     if (!IsMouseHoveringRect(bb.Min, bb.Max))
         return false;
-    if (!IsWindowContentHoverable(g.HoveredRootWindow))
+    if (!IsWindowContentHoverable(window))
         return false;
     return true;
 }