From e6a14977b94bc8716b68dfdf6691276c16415fb6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 5 Apr 2024 18:49:19 +0200 Subject: [PATCH] fix: Highlight and tooltip flickering when hovering over highlighted patterns --- plugins/ui/source/ui/hex_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ui/source/ui/hex_editor.cpp b/plugins/ui/source/ui/hex_editor.cpp index 035553d8f..43b1d7ba1 100644 --- a/plugins/ui/source/ui/hex_editor.cpp +++ b/plugins/ui/source/ui/hex_editor.cpp @@ -596,6 +596,8 @@ namespace hex::ui { auto cellSize = (CharacterSize * ImVec2(m_currDataVisualizer->getMaxCharsPerCell(), 1)) + (ImVec2(2, 2) * ImGui::GetStyle().CellPadding) + scaled(ImVec2(1 + m_byteCellPadding, 0)); auto maxCharsPerCell = m_currDataVisualizer->getMaxCharsPerCell(); + cellSize = ImVec2(std::ceil(cellSize.x), std::ceil(cellSize.y)); + auto [foregroundColor, backgroundColor] = cellColors[x]; if (isColumnSeparatorColumn(x + 1, columnCount) && cellColors.size() > x + 1) {