Revert "Fix transformation in eglfs backingstore"
authorJon Trulson <jtrulson@ics.com>
Tue, 28 Aug 2012 17:54:05 +0000 (11:54 -0600)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Aug 2012 12:09:13 +0000 (14:09 +0200)
This reverts commit 12491f35bbea7008b15fb0ba0ee7ea5bf6eb6b6c.

This change is not needed on eglfs.  It causes widget based apps to be
rendered with Y inverted.

Change-Id: Idb23fa22c438442b81882b64bf84d6aa0662d27b
Reviewed-by: Laszlo Agocs <lagocs83@gmail.com>
src/plugins/platforms/eglfs/qeglfsbackingstore.cpp

index 8ad0aab..2caf106 100644 (file)
@@ -124,8 +124,8 @@ void QEglFSBackingStore::flush(QWindow *window, const QRegion &region, const QPo
 
     GLfloat x1 = (r.left() / sr.width()) * 2 - 1;
     GLfloat x2 = (r.right() / sr.width()) * 2 - 1;
-    GLfloat y1 = -1 * ((r.top() / sr.height()) * 2 - 1);
-    GLfloat y2 = -1 * ((r.bottom() / sr.height()) * 2 - 1);
+    GLfloat y1 = (r.top() / sr.height()) * 2 - 1;
+    GLfloat y2 = (r.bottom() / sr.height()) * 2 - 1;
 
     const GLfloat vertexCoordinates[] = {
         x1, y1,