diff --git a/core/src/config.h b/core/src/config.h index c1bec25..e6bf10a 100644 --- a/core/src/config.h +++ b/core/src/config.h @@ -4,7 +4,6 @@ #include #include #include -#include using nlohmann::json; diff --git a/core/src/gui/main_window.cpp b/core/src/gui/main_window.cpp index 513a646..a7c9b61 100644 --- a/core/src/gui/main_window.cpp +++ b/core/src/gui/main_window.cpp @@ -404,9 +404,11 @@ void MainWindow::draw() { ImGui::SameLine(); - ImGui::SetCursorPosX(ImGui::GetWindowSize().x - 387); + int snrWidth = std::min(300, ImGui::GetWindowSize().x - ImGui::GetCursorPosX() - 87); + + ImGui::SetCursorPosX(ImGui::GetWindowSize().x - (snrWidth+87)); ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 5); - ImGui::SetNextItemWidth(300); + ImGui::SetNextItemWidth(snrWidth); ImGui::SNRMeter((vfo != NULL) ? gui::waterfall.selectedVFOSNR : 0); ImGui::SameLine();