Simplify expression

This commit is contained in:
Luflosi 2019-11-28 23:37:05 +01:00
parent 79a6fcdc5c
commit 1eaf7083ef
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -368,7 +368,7 @@ cocoa_make_window_resizable(void *w, bool resizable) {
bool
cocoa_alt_option_key_pressed(NSUInteger flags) {
NSUInteger q = (OPT(macos_option_as_alt) == 1) ? NSRightAlternateKeyMask : NSLeftAlternateKeyMask;
return ((q & flags) == q) ? true : false;
return (q & flags) == q;
}
void