Add back CMake build config for macOS (#2729)

Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Bart Louwers
2024-08-22 01:13:42 +02:00
committed by GitHub
parent a4258ccbb8
commit d377bcc5ba
12 changed files with 305 additions and 61 deletions

View File

@@ -218,7 +218,7 @@ GLFWView::GLFWView(bool fullscreen_,
#ifdef __APPLE__
int fbW, fbH;
glfwGetFramebufferSize(window, &fbW, &fbH);
backend->setSize({fbW, fbH});
backend->setSize({static_cast<uint32_t>(fbW), static_cast<uint32_t>(fbH)});
#endif
pixelRatio = static_cast<float>(backend->getSize().width) / width;
@@ -900,7 +900,7 @@ void GLFWView::onWindowResize(GLFWwindow *window, int width, int height) {
#ifdef __APPLE__
int fbW, fbH;
glfwGetFramebufferSize(window, &fbW, &fbH);
view->backend->setSize({fbW, fbH});
view->backend->setSize({static_cast<uint32_t>(fbW), static_cast<uint32_t>(fbH)});
#endif
}