Change-Id: Ie171d9342d877792c2f0b19694ff020965d91985
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
return;
}
if (m_moveSurface) {
- m_moveSurface->setPos(e->posF() - m_moveOffset);
+ m_moveSurface->setPos(e->localPos() - m_moveOffset);
update();
return;
}
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());
}