Two small changes that should make Emacs 23.1 usable with GNUstep.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28643 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-09-08 22:10:56 +00:00
parent 176b3a0a2c
commit ec138f065f
3 changed files with 17 additions and 9 deletions

View file

@ -1989,14 +1989,9 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
}
else
{
if (_gstate)
if (_gstate && !_renew_gstate)
{
DPSsetgstate(ctxt, _gstate);
if (_renew_gstate)
{
[self setUpGState];
_renew_gstate = NO;
}
DPSgsave(ctxt);
}
else
@ -2011,13 +2006,19 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
_renew_gstate = NO;
if (_allocate_gstate)
{
_gstate = GSDefineGState(ctxt);
if (_gstate)
{
GSReplaceGState(ctxt, _gstate);
}
else
{
_gstate = GSDefineGState(ctxt);
}
/* Balance the previous gsave and install our own gstate */
DPSgrestore(ctxt);
DPSsetgstate(ctxt, _gstate);
DPSgsave(ctxt);
}
}
}