Fix build

master
Jeremy Hu 2018-10-16 00:21:05 +08:00
parent 640b84b2f2
commit 7e0591de6b
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ bool ChartPacker::tryPack(float textureSize)
const auto &result = bestResult[i];
const auto &rect = rects[i];
auto &dest = m_result[i];
dest = {(float)result.left / width, (float)result.top / height, (float)rect.width / width, (float)rect.height / height, result.rotated};
std::get<0>(dest) = (float)result.left / width;
std::get<1>(dest) = (float)result.top / height;
std::get<2>(dest) = (float)rect.width / width;
std::get<3>(dest) = (float)rect.height / height;
std::get<4>(dest) = result.rotated;
//qDebug() << "result[" << i << "]:" << std::get<0>(dest) << std::get<1>(dest) << std::get<2>(dest) << std::get<3>(dest) << std::get<4>(dest);
}
return true;