1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 17:14:58 +01:00

Fix OSD D-Bus assertion with Qt 6

This commit is contained in:
Jonas Kvinge 2020-08-10 23:05:07 +02:00
parent 0ce613264f
commit be966488e8

View File

@ -83,7 +83,7 @@ QDBusArgument &operator<<(QDBusArgument &arg, const QImage &image) {
arg.beginStructure();
arg << i.width();
arg << i.height();
arg << i.bytesPerLine();
arg << static_cast<qint32>(i.bytesPerLine());
arg << i.hasAlphaChannel();
int channels = i.isGrayscale() ? 1 : (i.hasAlphaChannel() ? 4 : 3);
arg << i.depth() / channels;