1
0
mirror of synced 2024-11-28 17:40:51 +01:00

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);
}
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + this->m_characterCellPadding / 2);
if (!isCurrRegionValid(byteAddress))
ImGui::TextFormatted("?");
else if (std::isprint(bytes[x]))