1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

cocoa: silence -Wlogical-op-parentheses

(cherry picked from commit 3c3f9a8042)
This commit is contained in:
Stefano Pigozzi 2015-03-04 10:21:36 +01:00 committed by Diogo Franco (Kovensky)
parent 83119f05c4
commit 21a90cc49c

View File

@ -376,7 +376,7 @@ void cocoa_set_input_context(struct input_ctx *input_context)
if (cocoaModifiers & NSControlKeyMask)
mask |= MP_KEY_MODIFIER_CTRL;
if (LeftAltPressed(cocoaModifiers) ||
RightAltPressed(cocoaModifiers) && ![self useAltGr])
(RightAltPressed(cocoaModifiers) && ![self useAltGr]))
mask |= MP_KEY_MODIFIER_ALT;
if (cocoaModifiers & NSCommandKeyMask)
mask |= MP_KEY_MODIFIER_META;