GUI: fix 3+ digit addresses in register view

This commit is contained in:
tildearrow 2022-10-22 03:05:32 -05:00
parent 69090232fb
commit 0ce746d1d3
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@
*/ */
#include "gui.h" #include "gui.h"
#include <imgui.h>
void FurnaceGUI::drawRegView() { void FurnaceGUI::drawRegView() {
if (nextWindow==GUI_WINDOW_REGISTER_VIEW) { if (nextWindow==GUI_WINDOW_REGISTER_VIEW) {
@ -38,6 +39,8 @@ void FurnaceGUI::drawRegView() {
} else { } else {
ImGui::PushFont(patFont); ImGui::PushFont(patFont);
if (ImGui::BeginTable("Memory",17)) { if (ImGui::BeginTable("Memory",17)) {
ImGui::TableSetupColumn("addr",ImGuiTableColumnFlags_WidthFixed);
ImGui::TableNextRow(); ImGui::TableNextRow();
ImGui::TableNextColumn(); ImGui::TableNextColumn();
for (int i=0; i<16; i++) { for (int i=0; i<16; i++) {