mirror of https://github.com/WerWolv/ImHex.git
ux: Fixed region selection only selecting one byte
This commit is contained in:
parent
f0b392575f
commit
2e4eaf8d33
|
@ -715,7 +715,8 @@ struct MemoryEditor
|
||||||
ImGui::BeginChild("##scrolling");
|
ImGui::BeginChild("##scrolling");
|
||||||
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight());
|
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight());
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
DataEditingAddr = DataPreviewAddr = DataPreviewAddrEnd = GotoAddr;
|
DataEditingAddr = DataPreviewAddr = HighlightMin;
|
||||||
|
DataPreviewAddrEnd = HighlightMax;
|
||||||
DataEditingTakeFocus = true;
|
DataEditingTakeFocus = true;
|
||||||
}
|
}
|
||||||
GotoAddr = (size_t)-1;
|
GotoAddr = (size_t)-1;
|
||||||
|
|
|
@ -146,9 +146,7 @@ namespace hex {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
provider->setCurrentPage(page.value());
|
provider->setCurrentPage(page.value());
|
||||||
this->m_memoryEditor.GotoAddr = region.address;
|
this->m_memoryEditor.GotoAddrAndHighlight(region.address, region.address + region.size - 1);
|
||||||
this->m_memoryEditor.DataPreviewAddr = region.address;
|
|
||||||
this->m_memoryEditor.DataPreviewAddrEnd = region.address + region.size - 1;
|
|
||||||
View::postEvent(Events::RegionSelected, region);
|
View::postEvent(Events::RegionSelected, region);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue