GUI: set a minimum window size for the ins editor

This commit is contained in:
tildearrow 2022-01-20 17:42:14 -05:00
parent 4b43694db0
commit e10f61eda2

View file

@ -708,6 +708,7 @@ const char* ssgEnvTypes[8]={
void FurnaceGUI::drawInsEdit() { void FurnaceGUI::drawInsEdit() {
if (!insEditOpen) return; if (!insEditOpen) return;
ImGui::SetNextWindowSizeConstraints(ImVec2(440.0f*dpiScale,400.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale));
if (ImGui::Begin("Instrument Editor",&insEditOpen,ImGuiWindowFlags_NoDocking)) { if (ImGui::Begin("Instrument Editor",&insEditOpen,ImGuiWindowFlags_NoDocking)) {
if (curIns<0 || curIns>=(int)e->song.ins.size()) { if (curIns<0 || curIns>=(int)e->song.ins.size()) {
ImGui::Text("no instrument selected"); ImGui::Text("no instrument selected");