GUI: correct volume macro range for Amiga

This commit is contained in:
tildearrow 2022-01-15 17:42:17 -05:00
parent 79b86da98b
commit c9b69f885a

View file

@ -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)); ImGui::PlotHistogram("##IVolMacro",asFloat,ins->std.volMacroLen,0,NULL,volMin,volMax,ImVec2(400.0f*dpiScale,200.0f*dpiScale));
if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) { if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) {
macroDragStart=ImGui::GetItemRectMin(); macroDragStart=ImGui::GetItemRectMin();