Skip to content

Commit

Permalink
Fixed incorrect display of registers in CPU Monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicr committed Jul 26, 2024
1 parent 2e5bf2b commit 408dc3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/overlay/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 408dc3a

Please sign in to comment.