ui: Make sure ASCII cell content in hex editor is always centered

This commit is contained in:
WerWolv 2022-10-07 16:18:09 +02:00
parent f0da6ec82f
commit ce8c64a679

View file

@ -941,6 +941,7 @@ namespace hex::plugin::builtin {
this->drawSelectionFrame(x, y, byteAddress, 1, cellStartPos, cellSize); this->drawSelectionFrame(x, y, byteAddress, 1, cellStartPos, cellSize);
} }
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + this->m_characterCellPadding / 2);
if (!isCurrRegionValid(byteAddress)) if (!isCurrRegionValid(byteAddress))
ImGui::TextFormatted("?"); ImGui::TextFormatted("?");
else if (std::isprint(bytes[x])) else if (std::isprint(bytes[x]))