Adapt frames view to font size.

This commit is contained in:
Bartosz Taudul 2018-06-29 00:35:44 +02:00
parent ba68df329f
commit cc196ff0a8

View File

@ -514,7 +514,8 @@ void View::DrawFrames()
{
assert( m_worker.GetFrameCount() != 0 );
enum { Height = 40 };
const auto Height = 40 * ImGui::GetTextLineHeight() / 15.f;
enum { MaxFrameTime = 50 * 1000 * 1000 }; // 50ms
ImGuiWindow* window = ImGui::GetCurrentWindow();