mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
Tables: fixed X position of angled borders being off by half a pixel.
This commit is contained in:
parent
ed252c55aa
commit
b9adace7b5
@ -43,8 +43,10 @@ Breaking Changes:
|
|||||||
|
|
||||||
Other Changes:
|
Other Changes:
|
||||||
|
|
||||||
- Tables: fixed Y2 position of lower horizontal border (ImGuiTableFlags_BordersOuterH)
|
- Tables:
|
||||||
being off by one pixel when vertical ones are not also enabled. [@thedmd]
|
- Fixed Y2 position of lower horizontal border (ImGuiTableFlags_BordersOuterH)
|
||||||
|
being off by one pixel when vertical ones are not also enabled. [@thedmd]
|
||||||
|
- Fixed X position of angled borders being off by half a pixel. [@thedmd]
|
||||||
- ImDrawData: fixed a regression in 1.92.9 where legacy `ImDrawData::CmdListsCount` was always 0.
|
- ImDrawData: fixed a regression in 1.92.9 where legacy `ImDrawData::CmdListsCount` was always 0.
|
||||||
Prefer using `ImDrawData::CmdList.Size` anyway.
|
Prefer using `ImDrawData::CmdList.Size` anyway.
|
||||||
|
|
||||||
|
|||||||
@ -3627,7 +3627,7 @@ void ImGui::TableAngledHeadersRowEx(ImGuiID row_id, float angle, float max_label
|
|||||||
if (pass == 1)
|
if (pass == 1)
|
||||||
{
|
{
|
||||||
// Draw border
|
// Draw border
|
||||||
draw_list->AddLine(bg_shape[0], bg_shape[3], TableGetColumnBorderCol(table, order_n, column_n), TABLE_BORDER_SIZE);
|
draw_list->AddLine(bg_shape[0] - ImVec2(TABLE_BORDER_SIZE * 0.5f, 0.0f), bg_shape[3] - ImVec2(TABLE_BORDER_SIZE * 0.5f, 0.0f), TableGetColumnBorderCol(table, order_n, column_n), TABLE_BORDER_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PopClipRect();
|
PopClipRect();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user