mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Apply DPI scale to text shadow.
This commit is contained in:
parent
be9cbfc3e2
commit
b8766ad5d7
@ -150,7 +150,8 @@ static const ImVec4 SyntaxColorsDimmed[] = {
|
|||||||
|
|
||||||
[[maybe_unused]] static inline void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text )
|
[[maybe_unused]] static inline void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text )
|
||||||
{
|
{
|
||||||
draw->AddText( pos + ImVec2( 1, 1 ), 0xAA000000, text );
|
const auto scale = GetScale();
|
||||||
|
draw->AddText( pos + ImVec2( scale, scale ), 0xAA000000, text );
|
||||||
draw->AddText( pos, color, text );
|
draw->AddText( pos, color, text );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user