diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-06-06 08:13:53 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-06 15:29:34 +0200 |
commit | 66a0b8446dbd4d77e117353c9a55630249eccf7e (patch) | |
tree | b19e24fc9f7cf21fdbe4ba3aed864a9fe1b26988 /src/plugins | |
parent | 0cf0a2ae7c12a96883b4287005c0be1c4875cb76 (diff) |
Fixed compile error in eglfs plugin due to narrowing conversion.
qeglfscursor.cpp:300: error: narrowing conversion of
‘((const QRectF*)r)->QRectF::left()’ from ‘qreal’ to ‘const GLfloat’
inside { }
Change-Id: Ic4273828ad361ffac5a68068372bf400d468fb38
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfscursor.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfscursor.cpp b/src/plugins/platforms/eglfs/qeglfscursor.cpp index e72d4f6226..8627cfb875 100644 --- a/src/plugins/platforms/eglfs/qeglfscursor.cpp +++ b/src/plugins/platforms/eglfs/qeglfscursor.cpp @@ -292,11 +292,15 @@ void QEglFSCursor::draw(const QRectF &r) glUseProgram(m_program); + const GLfloat x1 = r.left(); + const GLfloat x2 = r.right(); + const GLfloat y1 = r.top(); + const GLfloat y2 = r.bottom(); const GLfloat cursorCoordinates[] = { - r.left(), r.bottom(), - r.right(), r.bottom(), - r.left(), r.top(), - r.right(), r.top() + x1, y2, + x2, y2, + x1, y1, + x2, y1 }; const GLfloat s1 = m_cursor.textureRect.left(); |