mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
Actually display signed and floating point data in the right format
This commit is contained in:
@@ -35,12 +35,12 @@ namespace hex {
|
||||
this->m_memoryEditor.HighlightFn = [](const ImU8 *data, size_t off, bool next) -> bool {
|
||||
ViewHexEditor *_this = (ViewHexEditor *) data;
|
||||
|
||||
for (auto&[offset, size, color, name] : _this->m_highlights) {
|
||||
if (next && off == (offset + size)) {
|
||||
for (auto&[offset, type, color, name] : _this->m_highlights) {
|
||||
if (next && off == (offset + type.size)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (off >= offset && off < (offset + size)) {
|
||||
if (off >= offset && off < (offset + type.size)) {
|
||||
_this->m_memoryEditor.HighlightColor = color;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user