Merge pull request #274 from AttorneyOnline/windrammer/fix-273-button-generator

Fix: Qt failing to paint a darker button if source image is indexed
This commit is contained in:
oldmud0 2020-08-30 13:34:28 -05:00 committed by GitHub
commit fe5128280c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ void AOEmoteButton::set_image(QString p_image, QString p_emote_comment)
}
else if (p_image.contains("_on") && file_exists(tmp_p_image.replace("_on", "_off"))) {
QImage tmpImage(tmp_p_image);
tmpImage = tmpImage.convertToFormat(QImage::Format_ARGB32);
QPoint p1, p2;
p2.setY(tmpImage.height());