[core] change std::array<uint16_t, 2> to mbgl::Size

This commit is contained in:
Konstantin Käfer
2016-10-26 15:22:31 -07:00
parent ef8017198c
commit 62b56b799a
72 changed files with 461 additions and 431 deletions

View File

@@ -23,8 +23,8 @@ PremultipliedImage decodeWebP(const uint8_t* data, size_t size) {
throw std::runtime_error("failed to decode WebP data");
}
UnassociatedImage image{ static_cast<uint16_t>(width), static_cast<uint16_t>(height),
std::move(webp) };
UnassociatedImage image({ static_cast<uint32_t>(width), static_cast<uint32_t>(height) },
std::move(webp));
return util::premultiply(std::move(image));
}