diff --git a/core/src/gui/main_window.cpp b/core/src/gui/main_window.cpp index e1071a22..da429e5e 100644 --- a/core/src/gui/main_window.cpp +++ b/core/src/gui/main_window.cpp @@ -412,7 +412,7 @@ void drawWindow() { if(ImGui::CollapsingHeader("Debug")) { ImGui::Text("Frame time: %.3f ms/frame", 1000.0 / ImGui::GetIO().Framerate); ImGui::Text("Framerate: %.1f FPS", ImGui::GetIO().Framerate); - ImGui::Text("Center Frequency: %.0 Hz", gui::waterfall.getCenterFrequency()); + ImGui::Text("Center Frequency: %.0f Hz", gui::waterfall.getCenterFrequency()); ImGui::Text("Source name: %s", sourceName.c_str()); if (ImGui::Checkbox("Test technique", &dcbias.val)) { sigpath::signalPath.setDCBiasCorrection(dcbias.val); diff --git a/core/src/gui/menus/audio.cpp b/core/src/gui/menus/audio.cpp index f39fdcaa..71cd1c6c 100644 --- a/core/src/gui/menus/audio.cpp +++ b/core/src/gui/menus/audio.cpp @@ -79,7 +79,7 @@ namespace audiomenu { deviceId = stream->audio->getDeviceId(); ImGui::SetCursorPosX((menuColumnWidth / 2.0f) - (ImGui::CalcTextSize(name.c_str()).x / 2.0f)); - ImGui::Text(name.c_str()); + ImGui::Text("%s", name.c_str()); ImGui::PushItemWidth(menuColumnWidth); bool running = stream->running; diff --git a/soapy/src/main.cpp b/soapy/src/main.cpp index a55c9836..e4610973 100644 --- a/soapy/src/main.cpp +++ b/soapy/src/main.cpp @@ -271,7 +271,7 @@ private: int i = 0; for (auto gain : _this->gainList) { - ImGui::Text((gain + " gain").c_str()); + ImGui::Text("%s gain", gain.c_str()); ImGui::SameLine(); ImGui::SetCursorPosX(gainNameLen); ImGui::SetNextItemWidth(menuWidth - gainNameLen);