Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-16 01:12:03 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-16 01:12:03 +0300
commit95879d2bd942fea135e6b6e49b9e031ab77b2401 (patch)
tree4dcdb868d04b8175055204f7cde124090e7e40af /server/TracyView.cpp
parent889eddd64666e515d4919148e8d5e4eb56e71276 (diff)
Use proper UI element to indicate selectable items.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r--server/TracyView.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index 90390e90..e60a594a 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -4789,14 +4789,20 @@ void View::DrawZoneInfoWindow()
const auto cstart = bit->Start();
const auto cpu1 = bit->Cpu();
- ImGui::TextUnformatted( TimeToString( cend - adjust ) );
- if( ImGui::IsMouseClicked( 0 ) && ImGui::IsItemHovered() ) CenterAtTime( cend );
+ if( ImGui::Selectable( TimeToString( cend - adjust ) ) )
+ {
+ CenterAtTime( cend );
+ }
ImGui::NextColumn();
- ImGui::TextUnformatted( TimeToString( cstart - adjust ) );
- if( ImGui::IsMouseClicked( 0 ) && ImGui::IsItemHovered() ) CenterAtTime( cstart );
+ if( ImGui::Selectable( TimeToString( cstart - adjust ) ) )
+ {
+ CenterAtTime( cstart );
+ }
ImGui::NextColumn();
- ImGui::TextUnformatted( TimeToString( cstart - cend ) );
- if( ImGui::IsMouseClicked( 0 ) && ImGui::IsItemHovered() ) ZoomToRange( cend, cstart );
+ if( ImGui::Selectable( TimeToString( cstart - cend ) ) )
+ {
+ ZoomToRange( cend, cstart );
+ }
ImGui::NextColumn();
if( cpu0 == cpu1 )
{