1
0
mirror of synced 2024-11-12 18:20:52 +01:00

fix: Jumping to bytes would move view to wrong offset

This commit is contained in:
WerWolv 2022-01-20 23:50:57 +01:00
parent 9ddd97a6eb
commit e756c9d46f

View File

@ -739,7 +739,7 @@ struct MemoryEditor
if (GotoAddr < mem_size)
{
ImGui::BeginChild("##scrolling");
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight() * 2);
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight());
ImGui::EndChild();
}
GotoAddr = (size_t)-1;