mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 17:00:52 +00:00
update to avoid obsolete function
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29844 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
588ae69c45
commit
18ab944a93
3 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-03-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/cairo/CairoGState.m:
|
||||||
|
* Source/gsc/GSGState.m:
|
||||||
|
Use the -zone method rather than GSObjCZone()
|
||||||
|
|
||||||
2010-02-24 16:45-EST Gregory John Casamento <greg.casamento@gmail.com>
|
2010-02-24 16:45-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Source/win32/WIN32Server.m: Added a boolean to control if
|
* Source/win32/WIN32Server.m: Added a boolean to control if
|
||||||
|
|
|
@ -90,7 +90,7 @@ static float floatToUserSpace(NSAffineTransform *ctm, float f)
|
||||||
{
|
{
|
||||||
NSAffineTransform *ictm;
|
NSAffineTransform *ictm;
|
||||||
|
|
||||||
ictm = [ctm copyWithZone: GSObjCZone(ctm)];
|
ictm = [ctm copyWithZone: [ctm zone]];
|
||||||
[ictm invert];
|
[ictm invert];
|
||||||
f = floatFromUserSpace(ictm, f);
|
f = floatFromUserSpace(ictm, f);
|
||||||
RELEASE(ictm);
|
RELEASE(ictm);
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
- (id) deepen
|
- (id) deepen
|
||||||
{
|
{
|
||||||
NSZone *zone = GSObjCZone(self);
|
NSZone *zone = [self zone];
|
||||||
|
|
||||||
if (path)
|
if (path)
|
||||||
self->path = [path copyWithZone: zone];
|
self->path = [path copyWithZone: zone];
|
||||||
|
@ -644,7 +644,7 @@ typedef enum {
|
||||||
if (ctm)
|
if (ctm)
|
||||||
[ctm makeIdentityMatrix];
|
[ctm makeIdentityMatrix];
|
||||||
else
|
else
|
||||||
ctm = [[NSAffineTransform allocWithZone: GSObjCZone(self)] init];
|
ctm = [[NSAffineTransform allocWithZone: [self zone]] init];
|
||||||
|
|
||||||
/* Initialize colors. By default the same color is used for filling and
|
/* Initialize colors. By default the same color is used for filling and
|
||||||
stroking unless fill and/or stroke color is set explicitly */
|
stroking unless fill and/or stroke color is set explicitly */
|
||||||
|
@ -657,7 +657,7 @@ typedef enum {
|
||||||
if (textCtm)
|
if (textCtm)
|
||||||
[textCtm makeIdentityMatrix];
|
[textCtm makeIdentityMatrix];
|
||||||
else
|
else
|
||||||
textCtm = [[NSAffineTransform allocWithZone: GSObjCZone(self)] init];
|
textCtm = [[NSAffineTransform allocWithZone: [self zone]] init];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)DPScurrentflat: (float *)flatness
|
- (void)DPScurrentflat: (float *)flatness
|
||||||
|
@ -699,7 +699,7 @@ typedef enum {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is rather slow, but it is not used very often
|
// This is rather slow, but it is not used very often
|
||||||
ictm = [ctm copyWithZone: GSObjCZone(self)];
|
ictm = [ctm copyWithZone: [self zone]];
|
||||||
[ictm invert];
|
[ictm invert];
|
||||||
user = [ictm transformPoint: [path currentPoint]];
|
user = [ictm transformPoint: [path currentPoint]];
|
||||||
RELEASE(ictm);
|
RELEASE(ictm);
|
||||||
|
@ -946,7 +946,7 @@ typedef enum {
|
||||||
{
|
{
|
||||||
// This is rather slow, but it is not used very often
|
// This is rather slow, but it is not used very often
|
||||||
NSBezierPath *newPath = [path copy];
|
NSBezierPath *newPath = [path copy];
|
||||||
NSAffineTransform *ictm = [ctm copyWithZone: GSObjCZone(self)];
|
NSAffineTransform *ictm = [ctm copyWithZone: [self zone]];
|
||||||
|
|
||||||
[ictm invert];
|
[ictm invert];
|
||||||
[newPath transformUsingAffineTransform: ictm];
|
[newPath transformUsingAffineTransform: ictm];
|
||||||
|
@ -1248,7 +1248,7 @@ typedef enum {
|
||||||
|
|
||||||
// The coordinates we get here are already in device space,
|
// The coordinates we get here are already in device space,
|
||||||
// but compositeToPoint needs user space coordinates
|
// but compositeToPoint needs user space coordinates
|
||||||
ictm = [ctm copyWithZone: GSObjCZone(self)];
|
ictm = [ctm copyWithZone: [self zone]];
|
||||||
[ictm invert];
|
[ictm invert];
|
||||||
|
|
||||||
size = [pattern size];
|
size = [pattern size];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue