From 0d154b14452778918305e8cfbcfc36ce396ed6b8 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 31 Jul 2025 18:48:45 -0500 Subject: [PATCH] GUI: fix wave >=1000 index cut off in wave list --- src/gui/dataList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 4b00139e4..400fd6e6c 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -236,7 +236,7 @@ void FurnaceGUI::waveListItem(int i, float* wavePreview, int dir, int asset) { lastAssetType=1; } ImGui::PopStyleVar(); - curPos.x+=ImGui::CalcTextSize("2222").x; + curPos.x+=ImGui::CalcTextSize("2").x*(2+((int)log10(MAX(1,e->song.waveLen-1)))); if (wantScrollListWave && curWave==i) ImGui::SetScrollHereY(); if (ImGui::IsItemHovered()) { if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {