mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 21:53:52 +00:00
Make frame targets input box smaller.
This commit is contained in:
parent
c3eb65be41
commit
740155f5e3
@ -24,6 +24,7 @@ void View::DrawOptions()
|
|||||||
m_vd.drawFrameTargets = val;
|
m_vd.drawFrameTargets = val;
|
||||||
ImGui::Indent();
|
ImGui::Indent();
|
||||||
int tmp = m_vd.frameTarget;
|
int tmp = m_vd.frameTarget;
|
||||||
|
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||||
ImGui::SetNextItemWidth( 90 * scale );
|
ImGui::SetNextItemWidth( 90 * scale );
|
||||||
if( ImGui::InputInt( "Target FPS", &tmp ) )
|
if( ImGui::InputInt( "Target FPS", &tmp ) )
|
||||||
{
|
{
|
||||||
@ -32,6 +33,7 @@ void View::DrawOptions()
|
|||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) );
|
TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) );
|
||||||
|
ImGui::PopStyleVar();
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
if( m_worker.HasContextSwitches() )
|
if( m_worker.HasContextSwitches() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user