Make frame targets input box smaller.

This commit is contained in:
Bartosz Taudul 2022-08-04 18:23:25 +02:00
parent c3eb65be41
commit 740155f5e3
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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() )
{