diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-01-12 22:15:40 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:47 +0100 |
commit | c193601289577f536a69a0394bd0a3e1c33490dd (patch) | |
tree | 41e6bb9d0a507cb12ac213f62450d3d7c8d31dce /chart2 | |
parent | 2a9c217db9f6afa7e0d2ef2a7b5fad5f0427f4fd (diff) |
fix bubble rendering
Change-Id: Ice371673554a88b69866179b6b16944d6171e45d
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index 7203745e9925..053a8bc3d0f2 100755 --- 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); |