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>
This commit is contained in:
parent
0cf0a2ae7c
commit
66a0b8446d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user