Partial fix for the SNR meter not being the right size

This commit is contained in:
Ryzerth 2021-07-29 17:58:23 +02:00
parent b7a0f849cf
commit 5d08f1018d
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,6 @@
#include <string>
#include <mutex>
#include <condition_variable>
#include <atomic>
using nlohmann::json;

View File

@ -404,9 +404,11 @@ void MainWindow::draw() {
ImGui::SameLine();
ImGui::SetCursorPosX(ImGui::GetWindowSize().x - 387);
int snrWidth = std::min<int>(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();