Kaydet (Commit) 1ef18014 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix line position

Change-Id: Ic604eb7b0d663928ab614fe85530e4f925bcff8f
üst e544b320
...@@ -302,8 +302,8 @@ void OpenGLSalGraphicsImpl::DrawLines( sal_uInt32 nPoints, const SalPoint* pPtAr ...@@ -302,8 +302,8 @@ void OpenGLSalGraphicsImpl::DrawLines( sal_uInt32 nPoints, const SalPoint* pPtAr
for( i = 0, j = 0; i < nPoints; i++ ) for( i = 0, j = 0; i < nPoints; i++ )
{ {
aPoints[j++] = (2 * pPtAry[i].mnX) / GetWidth() - 1.0; aPoints[j++] = (2 * pPtAry[i].mnX) / GetWidth() - 1.0f;
aPoints[j++] = (2 * pPtAry[i].mnY) / GetHeight() - 1.0; aPoints[j++] = 1.0f - (2 * pPtAry[i].mnY) / GetHeight();
} }
glEnableVertexAttribArray( GL_ATTRIB_POS ); glEnableVertexAttribArray( GL_ATTRIB_POS );
......
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