summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2015-01-07 18:06:25 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-01-19 15:04:20 +0000
commita2bf2e315c68eb761be0a3b32e98f204de4024fb (patch)
tree172100ab3c01ee50067f5c149009638d41ded33d /vcl
parentb693b64dbcf1be2598051773805b8cdc2d8297aa (diff)
fix confusion between transparency and opacity
Change-Id: Ifa69f3272ebda2a61ac00d2affb8aebd4524f0fc Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/gdiimpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 1e72c0ab7628..fc01730ee106 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -404,14 +404,14 @@ bool OpenGLSalGraphicsImpl::UseSolidAA( SalColor nColor, double fTransparency )
return UseSolid( nColor );
if( !UseProgram( "textureVertexShader", "linearGradientFragmentShader" ) )
return false;
- mpProgram->SetColorf( "start_color", nColor, 0.0f );
- mpProgram->SetColorf( "end_color", nColor, fTransparency );
+ mpProgram->SetColorf( "start_color", nColor, fTransparency );
+ mpProgram->SetColorf( "end_color", nColor, 1.0f );
return true;
}
bool OpenGLSalGraphicsImpl::UseSolidAA( SalColor nColor )
{
- return UseSolidAA( nColor, 1.0 );
+ return UseSolidAA( nColor, 0.0 );
}
bool OpenGLSalGraphicsImpl::UseInvert()