From 9eaf6ab9169b539aff219849877acb710cfcc0f6 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 20 Feb 2014 04:50:26 +0100 Subject: remove some old code Change-Id: I6dde9ae70746a59eef8727f7798b6c58971e045f --- chart2/source/view/main/DummyXShape.cxx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'chart2') 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() -- cgit