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;