From 457ce38044beaaba1ef720d6405719746541df7e Mon Sep 17 00:00:00 2001 From: cosmicr Date: Fri, 26 Jul 2024 02:57:19 +0000 Subject: [PATCH] Fixed incorrect display of registers in CPU Monitor (#116) --- src/overlay/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/overlay/util.h b/src/overlay/util.h index ee44266..a7a4bd6 100644 --- a/src/overlay/util.h +++ b/src/overlay/util.h @@ -49,8 +49,8 @@ namespace ImGui constexpr const size_t ARRAY_SIZE = BITS / 4 + 1; char data[ARRAY_SIZE]; - fmt::format_to_n(data, ARRAY_SIZE - 1, "{:0{}x}", value, ARRAY_SIZE - 1); - data[0] = '\0'; + fmt::format_to_n(data, ARRAY_SIZE - 1, "{:0{}X}", value, ARRAY_SIZE - 1); + data[ARRAY_SIZE - 1] = '\0'; TextUnformatted(name.c_str()); SameLine();