[Libreoffice-commits] core.git: chart2/source
Noel Grandin
noelgrandin at gmail.com
Sat Apr 7 10:40:44 UTC 2018
chart2/source/view/main/GL3DRenderer.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 44f8b996baa2d1c856abf90e6668311237c861ef
Author: Noel Grandin <noelgrandin at gmail.com>
Date: Sat Apr 7 08:45:51 2018 +0200
comment out some debug code
left over from
commit f9f8d930a17eb14365f914425c35df5a78f648ca
Date: Wed May 28 01:18:10 2014 +0200
enable picking again
Change-Id: Icce19c247512d61d7c255940fb5115e30c04e045
Reviewed-on: https://gerrit.libreoffice.org/52528
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx
index fc7917f6883d..7ac5d29d49ce 100644
--- a/chart2/source/view/main/GL3DRenderer.cxx
+++ b/chart2/source/view/main/GL3DRenderer.cxx
@@ -2235,9 +2235,8 @@ void OpenGL3DRenderer::SetPickingMode(bool bPickingMode)
Color OpenGL3DRenderer::GetPixelColorFromPoint(long nX, long nY)
{
- static sal_uInt32 nId = 0;
- OUString aFileName = "/home/moggi/work/picking_" + OUString::number(nId++) + ".png";
- OpenGLHelper::renderToFile(m_iWidth, m_iHeight, aFileName);
+// OUString aFileName = "/home/moggi/work/picking_" + OUString::number(nId++) + ".png";
+// OpenGLHelper::renderToFile(m_iWidth, m_iHeight, aFileName);
std::unique_ptr<sal_uInt8[]> buf(new sal_uInt8[4]);
glReadPixels(nX, m_iHeight-nY, 1, 1, GL_BGRA, GL_UNSIGNED_BYTE, buf.get());
Color aColor(255-buf[3], buf[2], buf[1], buf[0]);
More information about the Libreoffice-commits
mailing list