diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-01-12 18:22:16 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:46 +0100 |
commit | d192ef484ab397e4b00881f5858e0e7935387ddb (patch) | |
tree | cfa941fa8dc6497c3f76bcd884a71d8eebe26f90 /chart2 | |
parent | 69a0cc93e2b2ad9c6829419af5a2e1a743c1e86d (diff) |
only use one variable for alpha
It was confusing and in some places we already used the wrong variable.
Change-Id: Ib3a0f0e500530be0b502301233e5e853abe9f889
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 5 | ||||
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.hxx | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index 963ef2b966f6..e57666c511e8 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -881,7 +881,6 @@ OpenGLRender::OpenGLRender(uno::Reference< drawing::XShape > xTarget): m_RboID(0), m_iWidth(0), m_iHeight(0), - m_fLineAlpha(1.0), mxRenderTarget(xTarget), mbArbMultisampleSupported(false), m_TextVertexID(0), @@ -963,7 +962,7 @@ int OpenGLRender::CreateBMPHeader(sal_uInt8 *bmpHeader, int xsize, int ysize) void OpenGLRender::SetLine2DColor(sal_uInt8 r, sal_uInt8 g, sal_uInt8 b) { - m_Line2DColor = glm::vec4((float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, m_fLineAlpha); + m_Line2DColor = glm::vec4((float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, m_fAlpha); } void OpenGLRender::SetLine2DWidth(int width) @@ -1180,7 +1179,7 @@ void OpenGLRender::SetColor(sal_uInt32 color) sal_uInt8 r = (color & 0x00FF0000) >> 16; sal_uInt8 g = (color & 0x0000FF00) >> 8; sal_uInt8 b = (color & 0x000000FF); - m_2DColor = glm::vec4((float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, m_fLineAlpha); + m_2DColor = glm::vec4((float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, m_fAlpha); } int OpenGLRender::CreateMultiSampleFrameBufObj() diff --git a/chart2/source/view/main/OpenGLRender.hxx b/chart2/source/view/main/OpenGLRender.hxx index 65c0b915c7e6..9dd07773dd90 100755 --- a/chart2/source/view/main/OpenGLRender.hxx +++ b/chart2/source/view/main/OpenGLRender.hxx @@ -259,8 +259,6 @@ private: float m_fLineWidth; - float m_fLineAlpha; - std::list <Line2DPointList> m_Line2DShapePointList; com::sun::star::uno::Reference< com::sun::star::drawing::XShape > mxRenderTarget; |