From 57cabc1e0954ca619dd050356cbae829af575661 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 16:39:25 +0200 Subject: [PATCH] Support zone name shortening without text/zone sizes. --- server/TracyUtility.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyUtility.hpp b/server/TracyUtility.hpp index d30c727d..b757b022 100644 --- a/server/TracyUtility.hpp +++ b/server/TracyUtility.hpp @@ -19,6 +19,8 @@ enum class ShortenName : uint8_t const char* ShortenZoneName( ShortenName type, const char* name, ImVec2& tsz, float zsz ); +static inline const char* ShortenZoneName( ShortenName type, const char* name ) { ImVec2 tsz = {}; return ShortenZoneName( type, name, tsz, 0 ); } + } #endif