Fix image format conversion
QImage::convertToFormat() returns the converted image. Change-Id: Icfd3ff43e04939e6b92c7fa94e5e0af60f633385 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
7d4da559af
commit
71d21ed500
@ -167,7 +167,7 @@ void QMirClientCursor::configureMirCursorWithPixmapQCursor(MirSurface *surface,
|
||||
QImage image = cursor.pixmap().toImage();
|
||||
|
||||
if (image.format() != QImage::Format_ARGB32) {
|
||||
image.convertToFormat(QImage::Format_ARGB32);
|
||||
image = image.convertToFormat(QImage::Format_ARGB32);
|
||||
}
|
||||
|
||||
MirBufferStream *bufferStream = mir_connection_create_buffer_stream_sync(mConnection,
|
||||
|
Loading…
x
Reference in New Issue
Block a user