[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

@@ -57,7 +57,7 @@ PremultipliedImage decodeImage(const std::string& string) {
auto img = std::make_unique<uint8_t[]>(image.byteCount());
memcpy(img.get(), image.constBits(), image.byteCount());
return { size_t(image.width()), size_t(image.height()), std::move(img) };
return { static_cast<uint16_t>(image.width()), static_cast<uint16_t>(image.height()),
std::move(img) };
}
}