mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Move GetScale() to TracyImGui.hpp.
This commit is contained in:
parent
9af87a8c20
commit
be9cbfc3e2
@ -49,6 +49,12 @@ static const ImVec4 SyntaxColorsDimmed[] = {
|
||||
{ 0.21f, 0.69f, 0.89f, 0.6f }, // special
|
||||
};
|
||||
|
||||
|
||||
[[maybe_unused]] static inline float GetScale()
|
||||
{
|
||||
return ImGui::GetTextLineHeight() / 15.f;
|
||||
}
|
||||
|
||||
[[maybe_unused]] static inline void TextCentered( const char* text )
|
||||
{
|
||||
const auto tw = ImGui::CalcTextSize( text ).x;
|
||||
|
@ -81,12 +81,6 @@ constexpr const char* GpuContextNames[] = {
|
||||
};
|
||||
|
||||
|
||||
static inline float GetScale()
|
||||
{
|
||||
return ImGui::GetTextLineHeight() / 15.f;
|
||||
}
|
||||
|
||||
|
||||
static inline uint64_t GetThreadBit( uint8_t thread )
|
||||
{
|
||||
return uint64_t( 1 ) << thread;
|
||||
|
Loading…
Reference in New Issue
Block a user