diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m index 190c1cdf..e7aec2b1 100644 --- a/src/cocoa_monitor.m +++ b/src/cocoa_monitor.m @@ -97,8 +97,8 @@ static GLboolean modeIsGood(CGDisplayModeRef mode) static GLFWvidmode vidmodeFromCGDisplayMode(CGDisplayModeRef mode) { GLFWvidmode result; - result.width = CGDisplayModeGetWidth(mode); - result.height = CGDisplayModeGetHeight(mode); + result.width = (int) CGDisplayModeGetWidth(mode); + result.height = (int) CGDisplayModeGetHeight(mode); result.refreshRate = (int) CGDisplayModeGetRefreshRate(mode); CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); diff --git a/src/cocoa_window.m b/src/cocoa_window.m index b1b324d7..6306e9cc 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -519,7 +519,7 @@ static int translateKey(unsigned int key) - (void)otherMouseDown:(NSEvent *)event { _glfwInputMouseClick(window, - [event buttonNumber], + (int) [event buttonNumber], GLFW_PRESS, translateFlags([event modifierFlags])); } @@ -532,7 +532,7 @@ static int translateKey(unsigned int key) - (void)otherMouseUp:(NSEvent *)event { _glfwInputMouseClick(window, - [event buttonNumber], + (int) [event buttonNumber], GLFW_RELEASE, translateFlags([event modifierFlags])); }