mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
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:
parent
5371332f41
commit
a9dae5b3a7
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue