mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
Correct black bar for cairo > 1.6.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8026904d7f
commit
049d17ef30
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-06-07 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/cairo/CairoGState.m (-copyWithZone:): Don't use special
|
||||
clip adjustment for cairo > 1.6.0, as this got fixed there.
|
||||
|
||||
2008-06-01 18:00-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Headers/x11/XGGeneric.h:
|
||||
|
|
|
@ -210,9 +210,13 @@ static float floatToUserSpace(NSAffineTransform *ctm, float f)
|
|||
cairo_rectangle_t rect = clip_rects->rectangles[i];
|
||||
NSSize size = [_surface size];
|
||||
|
||||
// This strange computation is due to the device offset.
|
||||
cairo_rectangle(copy->_ct, rect.x,
|
||||
#if CAIRO_VERSION > CAIRO_VERSION_ENCODE(1, 6, 0)
|
||||
rect.y,
|
||||
#else
|
||||
// This strange computation is due to the device offset.
|
||||
rect.y + 2*(offset.y - size.height),
|
||||
#endif
|
||||
rect.width, rect.height);
|
||||
cairo_clip(copy->_ct);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue