1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

GetFontSize() -> GetTextLineHeight().

This commit is contained in:
Bartosz Taudul
2021-12-22 17:34:04 +01:00
parent 9fae8b7e42
commit 6b59ccfe4d
4 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ static const ImVec4 SyntaxColorsDimmed[] = {
ImGui::TextUnformatted( "" );
auto draw = ImGui::GetWindowDrawList();
const auto wpos = ImGui::GetWindowPos();
const auto ty = ImGui::GetFontSize();
const auto ty = ImGui::GetTextLineHeight();
const auto h = ImGui::GetCursorPosY() - ty * 0.5f;
const auto w = ImGui::GetWindowWidth();
draw->AddCircleFilled( wpos + ImVec2( w * 0.5f - ty, h ), ty * ( 0.15f + 0.2f * ( pow( cos( time * 3.5f + 0.3f ), 16.f ) ) ), 0xFFBBBBBB, 12 );