From c9b69f885a08a5881f83346b2ec81e8db94ec5ff Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 15 Jan 2022 17:42:17 -0500 Subject: [PATCH] GUI: correct volume macro range for Amiga --- src/gui/gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index e77a5c19d..4fb25625f 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -815,6 +815,9 @@ void FurnaceGUI::drawInsEdit() { } } } + if (ins->type==DIV_INS_AMIGA) { + volMax=64; + } ImGui::PlotHistogram("##IVolMacro",asFloat,ins->std.volMacroLen,0,NULL,volMin,volMax,ImVec2(400.0f*dpiScale,200.0f*dpiScale)); if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) { macroDragStart=ImGui::GetItemRectMin();