support for premultipled alpha

This commit is contained in:
itsmattkc
2019-01-26 21:49:18 +11:00
parent b0e1eb2ea4
commit 97a28ab54a
17 changed files with 392 additions and 254 deletions
+2
View File
@@ -248,6 +248,8 @@ bool LoadThread::load_worker(QFile& f, QXmlStreamReader& stream, int type) {
m->out = attr.value().toLong();
} else if (attr.name() == "speed") {
m->speed = attr.value().toDouble();
} else if (attr.name() == "alphapremul") {
m->alpha_is_premultiplied = (attr.value() == "1");
}
}