From 7e0591de6b1d582bd6851c5ec857cb222d746a9f Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Tue, 16 Oct 2018 00:21:05 +0800 Subject: [PATCH] Fix build --- thirdparty/simpleuv/simpleuv/chartpacker.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/thirdparty/simpleuv/simpleuv/chartpacker.cpp b/thirdparty/simpleuv/simpleuv/chartpacker.cpp index e7521cdf..a4519e5c 100644 --- a/thirdparty/simpleuv/simpleuv/chartpacker.cpp +++ b/thirdparty/simpleuv/simpleuv/chartpacker.cpp @@ -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;