Corrected focused region annotation margin caclulation

This commit is contained in:
Nav
2023-04-01 16:16:58 +01:00
parent 3a74906541
commit b4046e8ded

View File

@@ -165,7 +165,7 @@ namespace Bloom::Widgets
const int maximumWidth
) const {
if (hexViewerState->settings.displayAnnotations) {
constexpr auto averageSymbolWidth = 6;
constexpr auto averageSymbolWidth = 8;
const auto nameLabelWidth = static_cast<int>(this->focusedMemoryRegion.name.size() * averageSymbolWidth);
const auto valueLabelWidth = static_cast<int>(
this->valueLabel.has_value() ? this->valueLabel->size() * averageSymbolWidth : 0