Skip to content

Commit

Permalink
Converts loaded image to RGBA32, so it will always be non-palettized.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikskuh committed Sep 6, 2017
1 parent cd27b5d commit 2106a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openspritesheetdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void OpenSpritesheetDialog::updatePreview()

void OpenSpritesheetDialog::on_fileName_textChanged(const QString &fileName)
{
this->mSourceImage = QImage(fileName);
this->mSourceImage = QImage(fileName).convertToFormat(QImage::Format_ARGB32);
if(this->mSourceImage.isNull() == false)
{
auto limit = qMin(
Expand Down

0 comments on commit 2106a52

Please sign in to comment.