diff options
author | Nicolas Werner <nicolas.werner@ymail.com> | 2022-04-16 13:30:47 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@ymail.com> | 2022-04-16 13:30:59 +0200 |
commit | 01019450cfc0310224c5e0a7888302e21d32e807 (patch) | |
tree | 8b3ad07325bbe8c614d723b509cf5d1932aaa832 /src/dbus | |
parent | Fix cursor not being closed before txn was committed (diff) | |
download | nheko-01019450cfc0310224c5e0a7888302e21d32e807.tar.xz |
Fix grayscale bug AGAIN
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/NhekoDBusApi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/NhekoDBusApi.cpp b/src/dbus/NhekoDBusApi.cpp index edc3fa8a..201cdac1 100644 --- a/src/dbus/NhekoDBusApi.cpp +++ b/src/dbus/NhekoDBusApi.cpp @@ -118,7 +118,7 @@ operator<<(QDBusArgument &arg, const QImage &image) arg << i.height(); arg << i.bytesPerLine(); arg << i.hasAlphaChannel(); - int channels = i.isGrayscale() ? 1 : (i.hasAlphaChannel() ? 4 : 3); + int channels = i.hasAlphaChannel() ? 4 : 3; arg << i.depth() / channels; arg << channels; arg << QByteArray(reinterpret_cast<const char *>(i.bits()), i.sizeInBytes()); |