fix: Multi-byte hex editor visualizers displaying incorrect bytes

This commit is contained in:
WerWolv
2022-07-23 15:21:24 +02:00
parent b6d7fd6984
commit 9e3c6898ad

View File

@@ -761,7 +761,7 @@ namespace hex::plugin::builtin {
// Draw cell content
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0));
ImGui::PushItemWidth((CharacterSize * this->m_currDataVisualizer->getMaxCharsPerCell()).x);
this->drawCell(byteAddress, &bytes[x], bytesPerCell, cellHovered);
this->drawCell(byteAddress, &bytes[x * bytesPerCell], bytesPerCell, cellHovered);
ImGui::PopItemWidth();
ImGui::PopStyleVar();