Patch for the cairo scrolling issue. This will need a lot of testing!

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28389 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-07-10 08:11:39 +00:00
parent 5371332f41
commit a9dae5b3a7
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2009-07-10 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/CairoGState.m
(-compositeGState:fromRect:toPoint:op:fraction:): Add hack to
avoid scrolling problem for cairo > 1.8.
2009-05-31 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XWindowBuffer.m: Protect the XSHM code parts with

View file

@ -1288,6 +1288,14 @@ _set_op(cairo_t *ct, NSCompositingOperation op)
[source->ctm boundingRectFor: aRect result: &aRect];
if ((copyOnSelf) && (cairo_version() >= CAIRO_VERSION_ENCODE(1, 8, 0)))
{
NSSize size = [_surface size];
// For cairo > 1.8 we seem to need this adjustment
aRect.origin.y -= 2*(offset.y - size.height);
}
x = floorf(aPoint.x);
y = floorf(aPoint.y + 0.5);
minx = NSMinX(aRect);