mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44: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];
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user