Kaydet (Commit) 66d02a56 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

set the size to context and renderer before rendering

Change-Id: I2945a7b8647d0a40270b1e65cde2a0eb936ab1d1
üst 62b71e9a
...@@ -67,6 +67,9 @@ void GL3DBarChart::create3DShapes() ...@@ -67,6 +67,9 @@ void GL3DBarChart::create3DShapes()
void GL3DBarChart::render() void GL3DBarChart::render()
{ {
mrWindow.getContext()->makeCurrent(); mrWindow.getContext()->makeCurrent();
Size aSize = mrWindow.GetSizePixel();
mpRenderer->SetSize(aSize);
mrWindow.getContext()->setWinSize(aSize);
for(boost::ptr_vector<opengl3D::Renderable3DObject>::iterator itr = maShapes.begin(), for(boost::ptr_vector<opengl3D::Renderable3DObject>::iterator itr = maShapes.begin(),
itrEnd = maShapes.end(); itr != itrEnd; ++itr) itrEnd = maShapes.end(); itr != itrEnd; ++itr)
{ {
......
...@@ -249,9 +249,9 @@ private: ...@@ -249,9 +249,9 @@ private:
double m_dFreq; double m_dFreq;
#endif #endif
int m_iWidth; sal_Int32 m_iWidth;
int m_iHeight; sal_Int32 m_iHeight;
float m_fZmax; float m_fZmax;
......
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