mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
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:
parent
a9e7da9d4a
commit
84155c3cd1
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue