From 4a7f6e0cc1828f05559183b36a6104d26a8e37c0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 May 2024 12:55:55 +0200 Subject: [PATCH] Use enum names in radio button list. --- profiler/src/profiler/TracyView_Options.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/profiler/src/profiler/TracyView_Options.cpp b/profiler/src/profiler/TracyView_Options.cpp index 726d567e..12efc874 100644 --- a/profiler/src/profiler/TracyView_Options.cpp +++ b/profiler/src/profiler/TracyView_Options.cpp @@ -228,11 +228,11 @@ void View::DrawOptions() ImGui::TextUnformatted( ICON_FA_RULER_HORIZONTAL " Zone name shortening" ); ImGui::Indent(); ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); - ImGui::RadioButton( "Disabled", &ival, 0 ); - ImGui::RadioButton( "Minimal length", &ival, 1 ); - ImGui::RadioButton( "Only normalize", &ival, 2 ); - ImGui::RadioButton( "As needed", &ival, 3 ); - ImGui::RadioButton( "As needed + normalize", &ival, 4 ); + ImGui::RadioButton( "Disabled", &ival, (uint8_t)ShortenName::Never ); + ImGui::RadioButton( "Minimal length", &ival, (uint8_t)ShortenName::Always ); + ImGui::RadioButton( "Only normalize", &ival, (uint8_t)ShortenName::OnlyNormalize ); + ImGui::RadioButton( "As needed", &ival, (uint8_t)ShortenName::NoSpace ); + ImGui::RadioButton( "As needed + normalize", &ival, (uint8_t)ShortenName::NoSpaceAndNormalize ); ImGui::PopStyleVar(); ImGui::Unindent(); m_shortenName = (ShortenName)ival;