diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 19cc6679..fca999e3 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -94,6 +94,7 @@ int main( int argc, char** argv ) ImGuiIO& io = ImGui::GetIO(); io.Fonts->AddFontFromMemoryCompressedTTF( tracy::Arimo_compressed_data, tracy::Arimo_compressed_size, 15.0f * dpiScale, nullptr, ranges ); + auto fixedWidth = io.Fonts->AddFontDefault(); ImGui::StyleColorsDark(); auto& style = ImGui::GetStyle(); @@ -146,7 +147,7 @@ int main( int argc, char** argv ) ImGui::InputText( "Address", addr, 1024 ); if( ImGui::Button( "Connect" ) && *addr && !loadThread.joinable() ) { - view = std::make_unique( addr ); + view = std::make_unique( addr, fixedWidth ); } ImGui::Separator(); if( ImGui::Button( "Open saved trace" ) && !loadThread.joinable() ) @@ -160,10 +161,10 @@ int main( int argc, char** argv ) auto f = std::shared_ptr( tracy::FileRead::Open( fn ) ); if( f ) { - loadThread = std::thread( [&view, f, &badVer] { + loadThread = std::thread( [&view, f, &badVer, fixedWidth] { try { - view = std::make_unique( *f ); + view = std::make_unique( *f, fixedWidth ); } catch( const tracy::UnsupportedVersion& e ) {