Linux: Fix regression with mask of cursors if platform name is 'xcb'

This commit is contained in:
wmayer
2024-08-16 17:58:30 +02:00
committed by Chris Hennes
parent a55fc950da
commit 58826317fc

View File

@@ -661,14 +661,12 @@ static QCursor createCursor(QBitmap &bitmap, QBitmap &mask, int hotX, int hotY,
QImage img = bitmap.toImage();
img.convertTo(QImage::Format_ARGB32);
pixmap = QPixmap::fromImage(img);
} else {
pixmap = bitmap;
pixmap.setMask(mask);
return QCursor(pixmap, hotX, hotY);
}
pixmap.setMask(mask);
return QCursor(pixmap, hotX, hotY);
#else
return QCursor(bitmap, mask, hotX, hotY);
#endif
return QCursor(bitmap, mask, hotX, hotY);
}
void View3DInventorViewer::createStandardCursors(double dpr)