From 740155f5e33037a86b9c820863c453421570a1e4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Aug 2022 18:23:25 +0200 Subject: [PATCH] Make frame targets input box smaller. --- server/TracyView_Options.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView_Options.cpp b/server/TracyView_Options.cpp index bbe13c5c..ca0372f7 100644 --- a/server/TracyView_Options.cpp +++ b/server/TracyView_Options.cpp @@ -24,6 +24,7 @@ void View::DrawOptions() m_vd.drawFrameTargets = val; ImGui::Indent(); int tmp = m_vd.frameTarget; + ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); ImGui::SetNextItemWidth( 90 * scale ); if( ImGui::InputInt( "Target FPS", &tmp ) ) { @@ -32,6 +33,7 @@ void View::DrawOptions() } ImGui::SameLine(); TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) ); + ImGui::PopStyleVar(); ImGui::Unindent(); if( m_worker.HasContextSwitches() ) {