diff --git a/src/platform/macos/input.cpp b/src/platform/macos/input.cpp index f3973f10d35..be639d39ef0 100644 --- a/src/platform/macos/input.cpp +++ b/src/platform/macos/input.cpp @@ -562,7 +562,7 @@ const KeyCodeMap kKeyCodesMap[] = { // } // } // - // if (macos_input->display != nullptr) { + // if (macos_input->display != 0) { // // Input coordinates are based on the virtual resolution not the physical, so we need the scaling factor // const CGDisplayModeRef mode = CGDisplayCopyDisplayMode(macos_input->display); // macos_input->displayScaling = ((CGFloat) CGDisplayPixelsWide(macos_input->display)) / ((CGFloat) CGDisplayModeGetPixelWidth(mode));