GUI: settings window size constraints
This commit is contained in:
parent
eee0999cd6
commit
3542a6c22f
|
@ -276,6 +276,8 @@ void FurnaceGUI::drawSettings() {
|
||||||
ImVec2 setWindowSize=ImVec2(canvasW,canvasH);
|
ImVec2 setWindowSize=ImVec2(canvasW,canvasH);
|
||||||
ImGui::SetNextWindowPos(setWindowPos);
|
ImGui::SetNextWindowPos(setWindowPos);
|
||||||
ImGui::SetNextWindowSize(setWindowSize);
|
ImGui::SetNextWindowSize(setWindowSize);
|
||||||
|
} else {
|
||||||
|
ImGui::SetNextWindowSizeConstraints(ImVec2(200.0f*dpiScale,100.0f*dpiScale),ImVec2(canvasW,canvasH));
|
||||||
}
|
}
|
||||||
if (ImGui::Begin("Settings",&settingsOpen,ImGuiWindowFlags_NoDocking|globalWinFlags)) {
|
if (ImGui::Begin("Settings",&settingsOpen,ImGuiWindowFlags_NoDocking|globalWinFlags)) {
|
||||||
if (!settingsOpen) {
|
if (!settingsOpen) {
|
||||||
|
|
Loading…
Reference in a new issue