Fix debug output in eglfs with QEGL_EXTRA_DEBUG enabled
authorJohannes Zellner <johannes.zellner@nokia.com>
Tue, 13 Dec 2011 10:00:56 +0000 (11:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Dec 2011 12:58:56 +0000 (13:58 +0100)
Change-Id: I615a953b52184d01c5b1b78d1cff283f94c458d9
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/eglfs/qeglfsbackingstore.cpp
src/plugins/platforms/eglfs/qeglfsintegration.cpp

index 1d27be7..bbe5864 100644 (file)
@@ -79,18 +79,18 @@ QEglFSBackingStore::QEglFSBackingStore(QWindow *window)
     : QPlatformBackingStore(window)
 {
 #ifdef QEGL_EXTRA_DEBUG
-    qWarning("QEglBackingStore %p, %p", window, screen);
+    qWarning("QEglBackingStore %p, %p", window, window->screen());
 #endif
     m_paintDevice = new QEglFSPaintDevice(static_cast<QEglFSScreen *>(window->screen()->handle()));
 }
 
-void QEglFSBackingStore::flush(QWindow *widget, const QRegion &region, const QPoint &offset)
+void QEglFSBackingStore::flush(QWindow *window, const QRegion &region, const QPoint &offset)
 {
-    Q_UNUSED(widget);
+    Q_UNUSED(window);
     Q_UNUSED(region);
     Q_UNUSED(offset);
 #ifdef QEGL_EXTRA_DEBUG
-    qWarning("QEglBackingStore::flush %p",widget);
+    qWarning("QEglBackingStore::flush %p", window);
 #endif
     static_cast<QEglFSPaintDevice *>(m_paintDevice)->context()->swapBuffers();
 }
index 57579e8..c2717a3 100644 (file)
@@ -90,7 +90,7 @@ QPlatformWindow *QEglFSIntegration::createPlatformWindow(QWindow *window) const
 QPlatformBackingStore *QEglFSIntegration::createPlatformBackingStore(QWindow *window) const
 {
 #ifdef QEGL_EXTRA_DEBUG
-    qWarning("QEglIntegration::createWindowSurface %p\n",widget);
+    qWarning("QEglIntegration::createWindowSurface %p\n", window);
 #endif
     return new QEglFSBackingStore(window);
 }