summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-02-20 04:50:26 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-02-22 05:52:26 +0100
commit9eaf6ab9169b539aff219849877acb710cfcc0f6 (patch)
tree2b1eca7318eae5f38ca5167e86c38b3e74abe2f7 /chart2
parent887931b5f9e2519dfb57ec80092309fe67a7f308 (diff)
remove some old code
Change-Id: I6dde9ae70746a59eef8727f7798b6c58971e045f
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/DummyXShape.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index 53f233d7709a..5bbc0d2251d0 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -1446,27 +1446,15 @@ DummyChart::~DummyChart()
void SAL_CALL DummyChart::setSize( const awt::Size& aSize )
throw( beans::PropertyVetoException, uno::RuntimeException )
{
-#if 0
- DummyXShape::setSize(aSize);
- mpWindow->SetSizePixel(Size(aSize.Width, aSize.Height));
- pWindow->SetSizePixel(Size(aSize.Width, aSize.Height));
-#else
-
- SAL_WARN("chart2.opengl", "DummyChart::setSize()---aSize.Width = " << aSize.Width << ", aSize.Height = " << aSize.Height);
-// DummyXShape::setSize(aSize);
-// mpWindow->SetSizePixel(Size(aSize.Width, aSize.Height));
-// pWindow->SetSizePixel(Size(aSize.Width, aSize.Height));
+ SAL_INFO("chart2.opengl", "DummyChart::setSize()---aSize.Width = " << aSize.Width << ", aSize.Height = " << aSize.Height);
int width = aSize.Width / OPENGL_SCALE_VALUE;
int height = aSize.Height / OPENGL_SCALE_VALUE;
- width = (width + 3) & ~3;
- height = (height + 3) & ~3;
mpWindow->SetSizePixel(Size(width, height));
pWindow->SetSizePixel(Size(width, height));
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);
-#endif
+ SAL_INFO("chart2.opengl", "DummyChart::GLRender.Width = " << width << ", GLRender.Height = " << height);
}
void DummyChart::render()