[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

@@ -80,7 +80,7 @@ PremultipliedImage decodePNG(const uint8_t* data, size_t size) {
int color_type = 0;
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, nullptr, nullptr, nullptr);
UnassociatedImage image { width, height };
UnassociatedImage image { static_cast<uint16_t>(width), static_cast<uint16_t>(height) };
if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_expand(png_ptr);