OpalGState: Fixed a compile error (extra #endif). Added -DPSsetdash:::. Added stub -DPSsetstrokeadjust:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37146 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ivan Vučica 2013-09-23 18:57:10 +00:00
parent 653eec3473
commit 171af98132
2 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2013-09-23 Ivan Vucica <ivan@vucica.net>
* Source/opal/OpalGState.m:
Fixed a compile error (extra #endif).
Added -DPSsetdash:::.
Added stub -DPSsetstrokeadjust:.
2013-09-23 Ivan Vucica <ivan@vucica.net>
* Source/opal/OpalGState.m:

View file

@ -248,7 +248,6 @@ NSDebugLLog(@"OpalGState", @" : samplesperpixel = %d", samples
CGImageRelease(subImage);
CGImageRelease(backingImage);
#endif
}
/** Unlike -compositeGState, -drawGSstate fully respects the AppKit CTM but
@ -298,7 +297,15 @@ doesn't support to use the receiver cairo target as the source. */
{
NSDebugLLog(@"OpalGState", @"%p (%@): %s", self, [self class], __PRETTY_FUNCTION__);
// TODO: stub
if (!pat && size != 0)
{
NSLog(@"%s: null 'pat' passed with size %d. Fixing by setting size to 0.", pat, (int)size);
size = 0;
// TODO: looking at opal, it does not seem to have a tolerance for
// pat=NULL although CGContextSetLineDash() explicitly specifies that
// as a possible argument
}
CGContextSetLineDash(CGCTX, offset, pat, size);
}
- (void) DPSstroke
{
@ -754,6 +761,13 @@ static CGFloat theAlpha = 1.; // TODO: removeme
CGContextSetLineWidth(CGCTX, width);
}
- (void) DPSsetstrokeadjust: (int) b
{
NSDebugLLog(@"OpalGState", @"%p (%@): %s", self, [self class], __PRETTY_FUNCTION__);
// TODO: Opal doesn't implement this private API of Core Graphics
}
@end
// MARK: Non-required unimplemented methods