This commit is contained in:
halx99 2024-09-18 09:05:41 +08:00 committed by GitHub
parent c488380170
commit 1de06414cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ bool GLViewImpl::initWithRect(std::string_view viewName, const ax::Rect& rect, f
handleWindowSize(static_cast<int>(windowSize.width), static_cast<int>(windowSize.height));
#else
// sense retina
setFrameSize(windowSize.width, windowSize.height);
setFrameSize(windowSize.width / frameZoomFactor, windowSize.height / frameZoomFactor);
#endif
glfwSetMouseButtonCallback(_mainWindow, GLFWEventHandler::onGLFWMouseCallBack);