Move DrawHelpMarker to TracyImGui.hpp.

This commit is contained in:
Bartosz Taudul
2022-07-02 15:07:40 +02:00
parent 358148920a
commit c427214f46
3 changed files with 14 additions and 16 deletions

View File

@@ -250,20 +250,6 @@ bool View::ViewDispatch( const char* fileName, int line, uint64_t symAddr )
}
}
void View::DrawHelpMarker( const char* desc ) const
{
TextDisabledUnformatted( "(?)" );
if( ImGui::IsItemHovered() )
{
const auto ty = ImGui::GetTextLineHeight();
ImGui::BeginTooltip();
ImGui::PushTextWrapPos( 450.0f * ty / 15.f );
ImGui::TextUnformatted( desc );
ImGui::PopTextWrapPos();
ImGui::EndTooltip();
}
}
static const char* CompressionName[] = {
"LZ4",
"LZ4 HC",