on xenial help sign in
Initialize the image to be transparent

Otherwise since we're not painting all the pixels we get noise

commitf99d74a463f71699f0ae79585d31d8d66243da54 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 19 Nov 2015, 12:59 (11 years ago) parent78bdee5
1 file changed+1
plugins/Cursor/CursorImageProvider.cpp+1
plugins/Cursor/CursorImageProvider.cpp+1
@@ -42,6 +42,7 @@ BuiltInCursorImage::BuiltInCursorImage()
4242 "</svg>";
4343
4444 qimage = QImage(20, 32, QImage::Format_ARGB32);
45+ qimage.fill(Qt::transparent);
4546 QPainter imagePainter(&qimage);
4647
4748 QSvgRenderer *svgRenderer = new QSvgRenderer(QByteArray(svgString));