From 06f4573a87d861c50c0017702aed75a389619b46 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 22 Jan 2014 06:20:18 +0100 Subject: enable transparency again Change-Id: I5c3464995f3ef6bfe6c4e6895fa9f73e801a31b5 --- chart2/source/view/main/DummyXShape.cxx | 4 +--- chart2/source/view/main/OpenGLRender.cxx | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'chart2') diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 51b2bcca4a8f..6213d8d97fb7 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -354,14 +354,12 @@ void DummyPieSegment2D::render() sal_Int32 nColor = itr->second.get(); pChart->m_GLRender.SetColor(nColor); } - /* itr = maProperties.find(UNO_NAME_FILL_TRANSPARENCE); if(itr != maProperties.end()) { sal_Int32 transparency = itr->second.get(); - pChart->m_GLRender.SetTransparency(transparency&(0xFF)); + pChart->m_GLRender.SetTransparency(255-(transparency&(0xFF))); } - */ float nSize = std::max(maUnitCircleToScene.Line1.Column1, maUnitCircleToScene.Line2.Column2); pChart->m_GLRender.RenderPieSegment2DShape(nSize, maUnitCircleToScene.Line1.Column4 + maOffset.DirectionX, diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index e570a9e972ca..980c074cda80 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -1806,7 +1806,6 @@ int OpenGLRender::RenderPieSegment2DShape(float fSize, float fPosX, float fPosY) CHECK_GL_ERROR(); } - glEnable(GL_MULTISAMPLE); m_fZStep += 0.01f; CHECK_GL_ERROR(); -- cgit