diff options
Diffstat (limited to 'platform/default/webp_reader.cpp')
-rw-r--r-- | platform/default/webp_reader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/default/webp_reader.cpp b/platform/default/webp_reader.cpp index 6f90fe02f5..2c01fb4479 100644 --- a/platform/default/webp_reader.cpp +++ b/platform/default/webp_reader.cpp @@ -1,6 +1,6 @@ #include <mbgl/util/image.hpp> #include <mbgl/util/premultiply.hpp> -#include <mbgl/platform/log.hpp> +#include <mbgl/util/logging.hpp> extern "C" { @@ -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)); } |