mirror of
https://github.com/WerWolv/ImHex
synced 2024-10-19 09:12:27 +00:00
fix: Cell highlighting in hex editor view overlapping at non-integer scale factors
This commit is contained in:
parent
e9ebfe36b0
commit
4b1b52caf0
|
@ -476,7 +476,7 @@ namespace hex::ui {
|
|||
if (isColumnSeparatorColumn(i, columnCount))
|
||||
ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, SeparatorColumWidth);
|
||||
|
||||
ImGui::TableSetupColumn(hex::format(m_upperCaseHex ? "{:0{}X}" : "{:0{}x}", i * bytesPerCell, m_currDataVisualizer->getMaxCharsPerCell()).c_str(), ImGuiTableColumnFlags_WidthFixed, CharacterSize.x * m_currDataVisualizer->getMaxCharsPerCell() + (6 + m_byteCellPadding) * 1_scaled);
|
||||
ImGui::TableSetupColumn(hex::format(m_upperCaseHex ? "{:0{}X}" : "{:0{}x}", i * bytesPerCell, m_currDataVisualizer->getMaxCharsPerCell()).c_str(), ImGuiTableColumnFlags_WidthFixed, CharacterSize.x * m_currDataVisualizer->getMaxCharsPerCell() + std::ceil((6 + m_byteCellPadding) * 1_scaled));
|
||||
}
|
||||
|
||||
// ASCII column
|
||||
|
|
Loading…
Reference in a new issue