summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/default/png_reader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/default/png_reader.hpp')
-rw-r--r--include/mbgl/platform/default/png_reader.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/platform/default/png_reader.hpp b/include/mbgl/platform/default/png_reader.hpp
index 5cbbc51e77..9d6af91daa 100644
--- a/include/mbgl/platform/default/png_reader.hpp
+++ b/include/mbgl/platform/default/png_reader.hpp
@@ -49,13 +49,13 @@ private:
int color_type_;
bool has_alpha_;
public:
- PngReader(char const* data, std::size_t size);
+ PngReader(const uint8_t* data, std::size_t size);
~PngReader();
unsigned width() const;
unsigned height() const;
inline bool hasAlpha() const { return has_alpha_; }
bool premultipliedAlpha() const { return true; } // png_set_alpha_mode(png, PNG_ALPHA_PREMULTIPLIED, 2.2)
- void read(unsigned x,unsigned y, unsigned width, unsigned height, char * image);
+ void read(unsigned x,unsigned y, unsigned width, unsigned height, uint8_t* image);
private:
void init();
static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length);