From 0891245b49ea76faf18e32129d6d96bd6d101c42 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Jun 2020 02:15:21 +0200 Subject: [PATCH] Describe incompatible protocol in the tooltip. --- profiler/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index fe3f4ab3..d5855a58 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -740,6 +740,12 @@ static void DrawContents() char portstr[32]; sprintf( portstr, "%" PRIu32, v.second.port ); ImGui::BeginTooltip(); + if( badProto ) + { + tracy::TextColoredUnformatted( 0xFF0000FF, "Incompatible protocol!" ); + ImGui::SameLine(); + ImGui::TextDisabled( "(used: %i, required: %i)", v.second.protocolVersion, tracy::ProtocolVersion ); + } tracy::TextFocused( "IP:", v.second.address.c_str() ); tracy::TextFocused( "Port:", portstr ); ImGui::EndTooltip();