mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 12:31:00 +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
180e7b6c2c
commit
5ff3a3adda
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…
Reference in a new issue