Get colour from fillColor as only there the alpha value is set.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24733 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-02-28 23:22:34 +00:00
parent a9e7da9d4a
commit 84155c3cd1
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-03-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/CairoGState.m (-setColor:state:): Use fillColor
instead of parameter. Only in the former is the alpha field
set. Bug found by using valgrind.
2007-02-28 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/CairoContext.m (-initWithContextInfo:): Set self

View file

@ -150,7 +150,7 @@
/* Window device isn't set yet */
return;
}
c = *color;
c = fillColor;
gsColorToRGB(&c);
// FIXME: The underlying concept does not allow to determine if alpha is set or not.
if (c.field[AINDEX] > 0.0)