mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
TreeNode: fixed nav cursor rendering with rounding even though tree nodes don't have it. (#7589)
This commit is contained in:
parent
e74453760b
commit
be374fa598
@ -90,6 +90,8 @@ Other Changes:
|
|||||||
- Nav:
|
- Nav:
|
||||||
- Fixed context menu activation with gamepad erroneously testing for _NavEnableKeyboard
|
- Fixed context menu activation with gamepad erroneously testing for _NavEnableKeyboard
|
||||||
instead of _NavEnableGamepad. (#9454, #8803, #9270) [@Clownacy]
|
instead of _NavEnableGamepad. (#9454, #8803, #9270) [@Clownacy]
|
||||||
|
- TreeNode:
|
||||||
|
- Fixed nav cursor rendering with rounding even though tree nodes don't have it. (#7589)
|
||||||
- DrawList:
|
- DrawList:
|
||||||
- Minor optimization to `AddLine()`, `AddLineH()`, `AddLineV()` functions. (#4091)
|
- Minor optimization to `AddLine()`, `AddLineH()`, `AddLineV()` functions. (#4091)
|
||||||
- Added `ImDrawListFlags_TextNoPixelSnap` to disable snapping of AddText()
|
- Added `ImDrawListFlags_TextNoPixelSnap` to disable snapping of AddText()
|
||||||
|
|||||||
@ -7116,9 +7116,9 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
|
|||||||
if (hovered || selected)
|
if (hovered || selected)
|
||||||
{
|
{
|
||||||
const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
|
const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
|
||||||
RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false);
|
RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false, 0.0f);
|
||||||
}
|
}
|
||||||
RenderNavCursor(frame_bb, id, nav_render_cursor_flags);
|
RenderNavCursor(frame_bb, id, nav_render_cursor_flags | ImGuiNavRenderCursorFlags_NoRounding);
|
||||||
if (span_all_columns && !span_all_columns_label)
|
if (span_all_columns && !span_all_columns_label)
|
||||||
TablePopBackgroundChannel();
|
TablePopBackgroundChannel();
|
||||||
if (flags & ImGuiTreeNodeFlags_Bullet)
|
if (flags & ImGuiTreeNodeFlags_Bullet)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user