summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>2012-04-09 14:16:19 -0700
committerQt by Nokia <qt-info@nokia.com>2012-05-16 19:36:19 +0200
commitce2b46daea5815df1070463b6bc379e1b4573dae (patch)
tree285476dfe393748b414362975c31af8dc68dc008 /src/plugins/platforms/eglfs/qeglfsbackingstore.cpp
parent420b62f2028d2331a729ef800b40dfc762d1613c (diff)
Add eglfs cursor support
cursor-atlas.png was generated from existing cursor images (qttools/src/shared/qtpropertybrowser/images/) Change-Id: Ic4b396590eaec93e14a4b0915b15f735f5b1a5f5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsbackingstore.cpp')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsbackingstore.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp
index 5c1919a4f3..c3f3d4f34e 100644
--- a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp
+++ b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp
@@ -40,6 +40,7 @@
****************************************************************************/
#include "qeglfsbackingstore.h"
+#include "qeglfscursor.h"
#include <QtGui/QOpenGLContext>
#include <QtGui/QOpenGLPaintDevice>
@@ -185,6 +186,10 @@ void QEglFSBackingStore::flush(QWindow *window, const QRegion &region, const QPo
glDisableVertexAttribArray(m_textureCoordEntry);
#endif
+ // draw the cursor
+ if (QEglFSCursor *cursor = static_cast<QEglFSCursor *>(window->screen()->handle()->cursor()))
+ cursor->render();
+
m_context->swapBuffers(window);
}