[Libreoffice-commits] core.git: Branch 'private/moggi/chart-opengl-work' - chart2/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Sun Jan 12 13:17:49 PST 2014


 chart2/source/view/main/OpenGLRender.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 85d1c9ca2b15730040d24b0137c4931eff5ff698
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Sun Jan 12 22:15:40 2014 +0100

    fix bubble rendering
    
    Change-Id: Ice371673554a88b69866179b6b16944d6171e45d

diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index 7203745..053a8bc 100644
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -1294,12 +1294,12 @@ int OpenGLRender::Bubble2DShapePoint(float x, float y, float directionX, float d
         Create2DCircle(100);
     }
 
-    float actualX = (x / 10.0f);
-    float actualY = (y / 10.0f);
+    float actualX = (x / OPENGL_SCALE_VALUE);
+    float actualY = (y / OPENGL_SCALE_VALUE);
     m_Bubble2DPointList.x = actualX;
     m_Bubble2DPointList.y = actualY;
-    m_Bubble2DPointList.xScale = directionX / 10.0f;
-    m_Bubble2DPointList.yScale = directionY / 10.0f;
+    m_Bubble2DPointList.xScale = directionX / OPENGL_SCALE_VALUE;
+    m_Bubble2DPointList.yScale = directionY / OPENGL_SCALE_VALUE;
 
     m_fPicLeft = std::min(m_fPicLeft, actualX);
     m_fPicRight = std::max(m_fPicRight, actualX);


More information about the Libreoffice-commits mailing list