Simplify checking for NSFullScreenWindowMask

This commit is contained in:
Birunthan Mohanathas 2017-09-27 16:36:18 +03:00
parent d45788a7b8
commit 044a3a29a6

View file

@ -47,7 +47,7 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
return;
}
if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) {
if (self.window.styleMask & NSFullScreenWindowMask) {
return;
}
@ -60,7 +60,7 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
return;
}
if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) {
if (self.window.styleMask & NSFullScreenWindowMask) {
return;
}