mirror of
https://github.com/wolfpld/tracy.git
synced 2024-09-20 05:42:18 +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]];
|
auto& cev = *ev.child[cti[i]];
|
||||||
const auto& csl = m_worker.GetSourceLocation( cev.srcloc );
|
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() )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
m_gpuHighlight = &cev;
|
m_gpuHighlight = &cev;
|
||||||
if( ImGui::IsMouseClicked( 0 ) )
|
|
||||||
{
|
|
||||||
m_gpuInfoWindow = &cev;
|
|
||||||
}
|
|
||||||
if( ImGui::IsMouseClicked( 2 ) )
|
if( ImGui::IsMouseClicked( 2 ) )
|
||||||
{
|
{
|
||||||
ZoomToZone( cev );
|
ZoomToZone( cev );
|
||||||
|
Loading…
Reference in New Issue
Block a user