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