Fix build errors due to api changes in QtBase
authorJorgen Lind <jorgen.lind@gmail.com>
Sat, 8 Sep 2012 21:24:07 +0000 (23:24 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 10 Sep 2012 14:33:26 +0000 (16:33 +0200)
Change-Id: Ie171d9342d877792c2f0b19694ff020965d91985
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
examples/qwidget-compositor/main.cpp
src/plugins/platforms/wayland/qwaylandcursor.cpp

index c021425..9333e18 100644 (file)
@@ -302,7 +302,7 @@ protected:
             return;
         }
         if (m_moveSurface) {
-            m_moveSurface->setPos(e->posF() - m_moveOffset);
+            m_moveSurface->setPos(e->localPos() - m_moveOffset);
             update();
             return;
         }
index 7c6e8ca..e73c7bc 100644 (file)
@@ -213,7 +213,7 @@ void QWaylandCursor::setupPixmapCursor(QCursor *cursor)
     ensureSurface(cursor->pixmap().size());
     QImage src = cursor->pixmap().toImage().convertToFormat(QImage::Format_ARGB32);
     for (int y = 0; y < src.height(); ++y)
-        qMemCopy(mBuffer->image()->scanLine(y), src.scanLine(y), src.bytesPerLine());
+        memcpy(mBuffer->image()->scanLine(y), src.scanLine(y), src.bytesPerLine());
     mDisplay->setCursor(mSurface, cursor->hotSpot().x(), cursor->hotSpot().y());
 }