[core] standardize on uint16_t for texture sizes

This commit is contained in:
Konstantin Käfer
2016-08-22 17:57:22 +02:00
parent 512037cfdc
commit 63e53de157
15 changed files with 42 additions and 36 deletions

View File

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