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:
Fred Kiefer 2012-02-19 12:19:09 +00:00
parent 234ac0932b
commit 996c877868
2 changed files with 7 additions and 0 deletions

View file

@ -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);