mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:51:02 +00:00
Efficient implementation of isRotated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13944 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b3c5b78024
commit
59a2634ab1
1 changed files with 8 additions and 5 deletions
|
@ -436,11 +436,14 @@ static NSAffineTransformStruct identityTransform = {
|
|||
|
||||
- (BOOL) isRotated
|
||||
{
|
||||
if (rotationAngle == 0)
|
||||
return NO;
|
||||
if (rotationAngle < 0 && [self rotationAngle] == 0)
|
||||
return NO;
|
||||
return YES;
|
||||
if (B == 0 && D == 0)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
||||
- (void) boundingRectFor: (NSRect)rect result: (NSRect*)new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue