25 const Qt::CursorShape newShape = cursor ? cursor->shape() : Qt::ArrowCursor;
26 if (newShape != Qt::BitmapCursor) {
27 m_image->set(newShape);
28 xSpot = m_image->hotspot().x();
29 ySpot = m_image->hotspot().y();
30 QImage *i = m_image->image();
31 map = QPixmap::fromImage(*i);
33 QPoint point = cursor->hotSpot();
36 map = cursor->pixmap();
40 IDirectFBDisplayLayer *layer = toDfbLayer(m_screen);
41 IDirectFBSurface* surface(QDirectFbConvenience::dfbSurfaceForPlatformPixmap(map.handle()));
43 res = layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE);
45 DirectFBError(
"Failed to set DLSCL_ADMINISTRATIVE", res);
49 layer->SetCursorShape(layer, surface, xSpot, ySpot);
50 layer->SetCooperativeLevel(layer, DLSCL_SHARED);