mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Describe incompatible protocol in the tooltip.
This commit is contained in:
parent
f227bb4d9c
commit
0891245b49
@ -740,6 +740,12 @@ static void DrawContents()
|
|||||||
char portstr[32];
|
char portstr[32];
|
||||||
sprintf( portstr, "%" PRIu32, v.second.port );
|
sprintf( portstr, "%" PRIu32, v.second.port );
|
||||||
ImGui::BeginTooltip();
|
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( "IP:", v.second.address.c_str() );
|
||||||
tracy::TextFocused( "Port:", portstr );
|
tracy::TextFocused( "Port:", portstr );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
Loading…
Reference in New Issue
Block a user