mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:10:52 +00:00
Set _isIdentity for all methods changing the matrix of the affine
transform. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b7cb6503ee
commit
7d1631a845
2 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-03-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSAffineTransform.m: Set _isIdentity for all methods
|
||||
changing the matrix of the affine transform.
|
||||
|
||||
2007-03-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSApplication.m (-abortModal): Call stopModalWithCode: to
|
||||
|
|
|
@ -145,6 +145,9 @@ static NSAffineTransformStruct identityTransform = {
|
|||
A = sx; B = 0;
|
||||
C = 0; D = sy;
|
||||
}
|
||||
// FIXME
|
||||
_isIdentity = NO;
|
||||
_isFlipY = NO;
|
||||
}
|
||||
|
||||
- (void) translateToPoint: (NSPoint)point
|
||||
|
@ -161,6 +164,9 @@ static NSAffineTransformStruct identityTransform = {
|
|||
- (void) makeIdentityMatrix
|
||||
{
|
||||
matrix = identityTransform;
|
||||
// FIXME
|
||||
_isIdentity = YES;
|
||||
_isFlipY = NO;
|
||||
}
|
||||
|
||||
- (void) setFrameOrigin: (NSPoint)point
|
||||
|
@ -200,6 +206,9 @@ static NSAffineTransformStruct identityTransform = {
|
|||
amat.tX = anotherMatrix[4];
|
||||
amat.tY = anotherMatrix[5];
|
||||
matrix = matrix_multiply(amat, matrix);
|
||||
// FIXME
|
||||
_isIdentity = NO;
|
||||
_isFlipY = NO;
|
||||
}
|
||||
|
||||
- (void)inverse
|
||||
|
@ -330,6 +339,9 @@ static NSAffineTransformStruct identityTransform = {
|
|||
matrix.m22 = replace[3];
|
||||
matrix.tX = replace[4];
|
||||
matrix.tY = replace[5];
|
||||
// FIXME
|
||||
_isIdentity = NO;
|
||||
_isFlipY = NO;
|
||||
}
|
||||
|
||||
- (void) getMatrix: (float[6])replace
|
||||
|
@ -345,6 +357,9 @@ static NSAffineTransformStruct identityTransform = {
|
|||
- (void) takeMatrixFromTransform: (NSAffineTransform *)aTransform
|
||||
{
|
||||
matrix = [aTransform transformStruct];
|
||||
// FIXME
|
||||
_isIdentity = NO;
|
||||
_isFlipY = NO;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue