summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2015-01-07 18:06:25 +0100
committerLuboš Luňák <l.lunak@collabora.com>2015-01-12 13:31:47 +0100
commitb8b49af63ebe91682c8cc049aa05b1ad714a93e3 (patch)
tree83d7e7aa370ec9ec64a67807e8ce808472db3daf /vcl
parent032517ba36c328a4df36cd9f2ea54ad13c316721 (diff)
fix confusion between transparency and opacity
Change-Id: Ifa69f3272ebda2a61ac00d2affb8aebd4524f0fc
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 feb8bdc27e15..e7149f78adb2 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()