mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Unify GPU info window child selection with the rest of lists.
This commit is contained in:
parent
efe3eda845
commit
3b34ebf544
@ -2571,14 +2571,14 @@ void View::DrawGpuInfoWindow()
|
||||
{
|
||||
auto& cev = *ev.child[cti[i]];
|
||||
const auto& csl = m_worker.GetSourceLocation( cev.srcloc );
|
||||
ImGui::Text( "%s", m_worker.GetString( csl.name ) );
|
||||
bool b = false;
|
||||
if( ImGui::Selectable( m_worker.GetString( csl.name ), &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
{
|
||||
m_gpuInfoWindow = &cev;
|
||||
}
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
m_gpuHighlight = &cev;
|
||||
if( ImGui::IsMouseClicked( 0 ) )
|
||||
{
|
||||
m_gpuInfoWindow = &cev;
|
||||
}
|
||||
if( ImGui::IsMouseClicked( 2 ) )
|
||||
{
|
||||
ZoomToZone( cev );
|
||||
|
Loading…
Reference in New Issue
Block a user