internal/uidriver/glfw: Adjusting the view size is not needed on macOS 12

Updates #1745
This commit is contained in:
Hajime Hoshi 2021-11-27 18:47:01 +09:00
parent 2b1e961540
commit ef5f8a9018

View File

@ -71,6 +71,15 @@ package glfw
// return;
// }
//
// // Apparently, adjusting the view size is not needed as of macOS 12 (#1745).
// static int majorVersion = 0;
// if (majorVersion == 0) {
// majorVersion = [[NSProcessInfo processInfo] operatingSystemVersion].majorVersion;
// }
// if (majorVersion >= 12) {
// return;
// }
//
// // Reduce the view height (#1745).
// // https://stackoverflow.com/questions/27758027/sprite-kit-serious-fps-issue-in-full-screen-mode-on-os-x
// CGSize windowSize = [window frame].size;