mirror of
https://github.com/wolfpld/tracy
synced 2026-01-19 04:52:09 +00:00
Merge pull request #1055 from produktivkraft/osx_vscroll
fix vertical scroll bar lost on macos
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user