diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-29 05:41:29 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:27 +0100 |
commit | 2a88b9b1dbe22f55f6abb1144a9a2a7b684c35e2 (patch) | |
tree | 82f301122f7d7b23488d2e65a19071e6a4b8bc6b /chart2 | |
parent | f196f4b9fec1ccb667aa399006269d828623111c (diff) |
that code looked strange and might explain some artifacts
Change-Id: I069728620b741cc62218eff8ca10c0950166d6db
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 6b9d3a2469df..146207a84d0d 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -1039,16 +1039,12 @@ void DummyChart::setSize( const awt::Size& aSize ) // DummyXShape::setSize(aSize); // mpWindow->SetSizePixel(Size(aSize.Width, aSize.Height)); // pWindow->SetSizePixel(Size(aSize.Width, aSize.Height)); - int width = aSize.Width / 10; - int height = aSize.Height / 10; - width = (width + 3) & ~3; - height = (height + 3) & ~3; - mpWindow->SetSizePixel(Size(width, height)); - pWindow->SetSizePixel(Size(width, height)); + mpWindow->SetSizePixel(Size(0,0)); + pWindow->SetSizePixel(Size(0,0)); DummyXShape::setSize(awt::Size(0,0)); - m_GLRender.SetWidth(width); - m_GLRender.SetHeight(height); - SAL_WARN("chart2.opengl", "DummyChart::GLRender.Width = " << width << ", GLRender.Height = " << height); + m_GLRender.SetWidth(aSize.Width); + m_GLRender.SetHeight(aSize.Height); + SAL_WARN("chart2.opengl", "DummyChart::GLRender.Width = " << aSize.Width << ", GLRender.Height = " << aSize.Height); #endif //[mod] by gaowei end |