Skip to content

Commit

Permalink
SNIProxy: use QBitmap::fromImage TODO
Browse files Browse the repository at this point in the history
TODO: is behavior equivalent? Conversion flags...
  • Loading branch information
gfgit committed Feb 11, 2024
1 parent eff94ca commit 65108ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-tray/sniproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ QImage SNIProxy::convertFromNative(xcb_image_t *xcbImage) const

if (format == QImage::Format_RGB32 && xcbImage->bpp == 32) {
QImage m = image.createHeuristicMask();
QBitmap mask(QPixmap::fromImage(m));
QBitmap mask = QBitmap::fromImage(m);
QPixmap p = QPixmap::fromImage(image);
p.setMask(mask);
image = p.toImage();
Expand Down

0 comments on commit 65108ff

Please sign in to comment.