Kaydet (Commit) 72eff9e6 authored tarafından Radek Doulik's avatar Radek Doulik

fix set color regression in cairo canvas

 - the cairo_set_source_rgba should be called with non-alpha-pre-multiplied
   color values
 - fixes fdo#33591 and fdo#35681
üst 4cb99334
......@@ -128,13 +128,11 @@ namespace cairocanvas
{
if( rColor.getLength() > 3 )
{
const double alpha = rColor[3];
cairo_set_source_rgba( pCairo,
alpha*rColor[0],
alpha*rColor[1],
alpha*rColor[2],
alpha );
rColor[0],
rColor[1],
rColor[2],
rColor[3] );
}
else if( rColor.getLength() == 3 )
cairo_set_source_rgb( pCairo,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment