2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

fix vertical scroll bar lost on macos

This commit is contained in:
Allen Guo
2025-05-31 23:40:56 +08:00
parent 87924acdd9
commit b8267a1660
2 changed files with 5 additions and 0 deletions

View File

@@ -166,6 +166,10 @@ void Backend::NewFrame( int& w, int& h )
}
glfwGetFramebufferSize( s_window, &w, &h );
#if defined( __APPLE__ )
w = static_cast<int>( w / scale );
h = static_cast<int>( h / scale );
#endif
m_w = w;
m_h = h;

View File

@@ -808,6 +808,7 @@ bool View::DrawImpl()
sprintf( tmp, "%s###Profiler", m_worker.GetCaptureName().c_str() );
ImGui::SetNextWindowSize( ImVec2( 1550, 800 ), ImGuiCond_FirstUseEver );
ImGui::Begin( tmp, keepOpenPtr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoBringToFrontOnFocus );
ImGuiViewport* viewport = ImGui::GetMainViewport();
#endif
if( !m_staticView )