diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-02-15 22:28:09 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-16 02:54:13 +0100 |
commit | a5e48409e9576d1081d5b981a22a1927b18be93c (patch) | |
tree | c7af2d0f894cc9fec04e8cdffa14d2f4cc9f5764 /chart2 | |
parent | 5afc5d1bfd1bc8ca52d2a03d6b7758c72eb9698e (diff) |
improve bubble positioning
Change-Id: Ifeecb23b0f2ee3218b052aaf688dcd51bcc30d58
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index a4184323dcce..4d0f25ec7b3c 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -1031,10 +1031,10 @@ int OpenGLRender::Bubble2DShapePoint(float x, float y, float directionX, float d float actualX = (x / OPENGL_SCALE_VALUE); float actualY = (y / OPENGL_SCALE_VALUE); Bubble2DPointList aBubble2DPointList; - aBubble2DPointList.x = actualX; - aBubble2DPointList.y = actualY; aBubble2DPointList.xScale = directionX / OPENGL_SCALE_VALUE; aBubble2DPointList.yScale = directionY / OPENGL_SCALE_VALUE; + aBubble2DPointList.x = actualX + aBubble2DPointList.xScale / 2; + aBubble2DPointList.y = actualY + aBubble2DPointList.yScale / 2; m_Bubble2DShapePointList.push_back(aBubble2DPointList); return 0; |