Skip to content

Commit

Permalink
mouse tooltip now gives packed size for the hovered byte as well
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyC committed Apr 10, 2024
1 parent 6817e27 commit 9ee83e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void DrawHexView()
}

ImGui::BeginTooltip();
ImGui::Text( "%08x %s", bytePos, symbolIndex >= 0 && kkp.sortableSymbols[ symbolIndex ].name.size() ? kkp.sortableSymbols[ symbolIndex ].name.data() : "<no symbol>" );
ImGui::Text( "%08x (%g) %s", bytePos, byte.packed, symbolIndex >= 0 && kkp.sortableSymbols[ symbolIndex ].name.size() ? kkp.sortableSymbols[ symbolIndex ].name.data() : "<no symbol>" );
ImGui::EndTooltip();

hexMouseSymbol = byte.symbol;
Expand Down

0 comments on commit 9ee83e1

Please sign in to comment.