Simplify checking for NSFullScreenWindowMask
This commit is contained in:
parent
d45788a7b8
commit
044a3a29a6
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) {
|
if (self.window.styleMask & NSFullScreenWindowMask) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) {
|
if (self.window.styleMask & NSFullScreenWindowMask) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue