mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix to use RGBA32
This commit is contained in:
parent
1efed9d436
commit
43afcf3f98
@ -608,7 +608,7 @@ bool CreateGxsChannelMsg::setThumbNail(const std::string& path, int frame){
|
|||||||
if(imageBuffer == NULL)
|
if(imageBuffer == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QImage tNail(imageBuffer, width, height, QImage::Format_RGB32);
|
QImage tNail(imageBuffer, width, height, QImage::Format_RGBA32);
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
QBuffer buffer(&ba);
|
QBuffer buffer(&ba);
|
||||||
bool has_transparency = ImageUtil::hasAlphaContent(tNail.toImage());
|
bool has_transparency = ImageUtil::hasAlphaContent(tNail.toImage());
|
||||||
|
Loading…
Reference in New Issue
Block a user