Kaydet (Commit) 6243457e authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

fix rectangle rendering

I had to disable it at the same time as it renders a white space over
the whole chart right now. Before the fix it was just the top left
quadrant.

Change-Id: I499767bcc302e6d6c82437535b4ea10ba212b82d
üst c1936012
......@@ -562,6 +562,7 @@ DummyRectangle::DummyRectangle(const awt::Size& rSize, const awt::Point& rPoint,
void DummyRectangle::render()
{
/*
SAL_WARN("chart2.opengl", "render DummyRectangle");
debugProperties(maProperties);
DummyChart* pChart = getRootShape();
......@@ -586,6 +587,7 @@ void DummyRectangle::render()
}
pChart->m_GLRender.RectangleShapePoint(maPosition.X, maPosition.Y, maSize.Width, maSize.Height);
pChart->m_GLRender.RenderRectangleShape();
*/
}
DummyText::DummyText(const OUString& rText, const tNameSequence& rNames,
......
......@@ -1400,7 +1400,7 @@ int OpenGLRender::RenderRectangleShape()
RectanglePointList &pointList = m_RectangleShapePointList.front();
PosVecf3 trans = {pointList.x, pointList.y, pointList.z};
PosVecf3 angle = {0.0f, 0.0f, 0.0f};
PosVecf3 scale = {pointList.xScale / 2, pointList.yScale / 2, 1.0f};
PosVecf3 scale = {pointList.xScale, pointList.yScale, 1.0f};
MoveModelf(trans, angle, scale);
m_MVP = m_Projection * m_View * m_Model;
......
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