mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
Use difference operator only for cairo version >= 1.9.4.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34776 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
234ac0932b
commit
996c877868
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-02-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/cairo/CairoGState.m (-compositerect:op:): Use difference
|
||||
operator only for cairo version >= 1.9.4.
|
||||
|
||||
2012-02-18 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/winlib/WIN32GState.m
|
||||
|
|
|
@ -1189,12 +1189,14 @@ _set_op(cairo_t *ct, NSCompositingOperation op)
|
|||
|
||||
cairo_save(_ct);
|
||||
|
||||
#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 9, 4)
|
||||
if (GSCompositeHighlight == op)
|
||||
{
|
||||
cairo_set_operator(_ct, CAIRO_OPERATOR_DIFFERENCE);
|
||||
cairo_set_source_rgb(_ct, 1, 1, 1);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
_set_op(_ct, op);
|
||||
|
||||
|
|
Loading…
Reference in a new issue