Remove warnings
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "application.h"
|
||||
#include "imgui.h"
|
||||
#include "implot.h"
|
||||
@@ -233,11 +235,9 @@ void scenes::lobby::gui_server_list()
|
||||
if (!data.manual)
|
||||
{
|
||||
ImGui::SetCursorPos(ImVec2(pos.x, pos.y + 50));
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0,1,0,1));
|
||||
if (ImGui::Checkbox(("Autoconnect##" + cookie).c_str(), &data.autoconnect))
|
||||
save_config();
|
||||
vibrate_on_hover();
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "lobby.h"
|
||||
@@ -311,7 +313,7 @@ static void draw_single_key(const key& k, int key_id, ImVec2 size_arg)
|
||||
return /*false*/;
|
||||
|
||||
bool hovered, held;
|
||||
bool pressed = button_behavior(bb, id, &hovered, &held, flags);
|
||||
[[maybe_unused]] bool pressed = button_behavior(bb, id, &hovered, &held, flags);
|
||||
|
||||
// Render
|
||||
const ImU32 col = ImGui::GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "stream.h"
|
||||
|
||||
#include "application.h"
|
||||
@@ -202,7 +204,7 @@ XrCompositionLayerQuad scenes::stream::plot_performance_metrics(XrTime predicted
|
||||
for(auto&& [index, metrics]: utils::enumerate(decoder_metrics))
|
||||
{
|
||||
std::string title = "Decoder " + std::to_string(index);
|
||||
if (ImPlot::BeginPlot(title.c_str(), plot_size, ImPlotFlags_CanvasOnly | ImPlotFlags_NoChild))
|
||||
if (ImPlot::BeginPlot(title.c_str(), plot_size, ImPlotFlags_NoTitle | ImPlotFlags_NoMenus | ImPlotFlags_NoBoxSelect | ImPlotFlags_NoMouseText | ImPlotFlags_NoChild))
|
||||
{
|
||||
float min_v = 0;
|
||||
float max_v = compute_plot_max_value(&(metrics.data()->displayed), metrics.size(), sizeof(decoder_metric));
|
||||
|
||||
Reference in New Issue
Block a user