From a54ff1f56dfac6fec29f9c10f84ebe3205486436 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Jul 2018 01:05:49 +0200 Subject: [PATCH] =?UTF-8?q?Use=20'=CE=BC'=20instead=20of=20'u'=20to=20indi?= =?UTF-8?q?cate=20micro.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/TracyView.cpp | 8 ++++++++ standalone/build/win32/Tracy.vcxproj | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4149b6ca..573100a1 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -51,7 +51,11 @@ static const char* TimeToString( int64_t ns ) } else if( ns < 1000ll * 1000 ) { +#ifdef TRACY_EXTENDED_FONT + sprintf( buf, "%s%.2f \xce\xbcs", sign, ns / 1000. ); +#else sprintf( buf, "%s%.2f us", sign, ns / 1000. ); +#endif } else if( ns < 1000ll * 1000 * 1000 ) { @@ -98,7 +102,11 @@ static const char* TimeToStringInteger( int64_t ns ) } else if( ns < 1000ll * 1000 ) { +#ifdef TRACY_EXTENDED_FONT + sprintf( buf, "%s%.0f \xce\xbcs", sign, ns / 1000. ); +#else sprintf( buf, "%s%.0f us", sign, ns / 1000. ); +#endif } else if( ns < 1000ll * 1000 * 1000 ) { diff --git a/standalone/build/win32/Tracy.vcxproj b/standalone/build/win32/Tracy.vcxproj index 9acb7c6a..ced6fb86 100644 --- a/standalone/build/win32/Tracy.vcxproj +++ b/standalone/build/win32/Tracy.vcxproj @@ -48,7 +48,7 @@ Level3 Disabled true - TRACY_FILESELECTOR;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) + TRACY_FILESELECTOR;TRACY_EXTENDED_FONT;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) ..\..\libs\glfw\include;..\..\libs\gl3w;..\..\..\imgui;%(AdditionalIncludeDirectories) true false @@ -73,7 +73,7 @@ true true true - TRACY_FILESELECTOR;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) + TRACY_FILESELECTOR;TRACY_EXTENDED_FONT;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) ..\..\libs\glfw\include;..\..\libs\gl3w;..\..\..\imgui;%(AdditionalIncludeDirectories) true true