Kaydet (Commit) 9eaf6ab9 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

remove some old code

Change-Id: I6dde9ae70746a59eef8727f7798b6c58971e045f
üst 887931b5
...@@ -1446,27 +1446,15 @@ DummyChart::~DummyChart() ...@@ -1446,27 +1446,15 @@ DummyChart::~DummyChart()
void SAL_CALL DummyChart::setSize( const awt::Size& aSize ) void SAL_CALL DummyChart::setSize( const awt::Size& aSize )
throw( beans::PropertyVetoException, uno::RuntimeException ) throw( beans::PropertyVetoException, uno::RuntimeException )
{ {
#if 0 SAL_INFO("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));
#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));
int width = aSize.Width / OPENGL_SCALE_VALUE; int width = aSize.Width / OPENGL_SCALE_VALUE;
int height = aSize.Height / OPENGL_SCALE_VALUE; int height = aSize.Height / OPENGL_SCALE_VALUE;
width = (width + 3) & ~3;
height = (height + 3) & ~3;
mpWindow->SetSizePixel(Size(width, height)); mpWindow->SetSizePixel(Size(width, height));
pWindow->SetSizePixel(Size(width, height)); pWindow->SetSizePixel(Size(width, height));
DummyXShape::setSize(awt::Size(0,0)); DummyXShape::setSize(awt::Size(0,0));
m_GLRender.SetWidth(width); m_GLRender.SetWidth(width);
m_GLRender.SetHeight(height); m_GLRender.SetHeight(height);
SAL_WARN("chart2.opengl", "DummyChart::GLRender.Width = " << width << ", GLRender.Height = " << height); SAL_INFO("chart2.opengl", "DummyChart::GLRender.Width = " << width << ", GLRender.Height = " << height);
#endif
} }
void DummyChart::render() void DummyChart::render()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment