mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-23 21:03:57 +01:00
Partial fix for the SNR meter not being the right size
This commit is contained in:
parent
b7a0f849cf
commit
5d08f1018d
@ -4,7 +4,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <atomic>
|
|
||||||
|
|
||||||
using nlohmann::json;
|
using nlohmann::json;
|
||||||
|
|
||||||
|
@ -404,9 +404,11 @@ void MainWindow::draw() {
|
|||||||
|
|
||||||
ImGui::SameLine();
|
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::SetCursorPosY(ImGui::GetCursorPosY() + 5);
|
||||||
ImGui::SetNextItemWidth(300);
|
ImGui::SetNextItemWidth(snrWidth);
|
||||||
ImGui::SNRMeter((vfo != NULL) ? gui::waterfall.selectedVFOSNR : 0);
|
ImGui::SNRMeter((vfo != NULL) ? gui::waterfall.selectedVFOSNR : 0);
|
||||||
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user