kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Partial fix for the SNR meter not being the right size
rodzic
b7a0f849cf
commit
5d08f1018d
|
@ -4,7 +4,6 @@
|
|||
#include <string>
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
#include <atomic>
|
||||
|
||||
using nlohmann::json;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue