diff options
author | artemp <artem@mapnik.org> | 2014-11-21 11:28:56 +0100 |
---|---|---|
committer | artemp <artem@mapnik.org> | 2014-11-21 11:28:56 +0100 |
commit | 4af232dcf347723969aad01d7347ff2cdd8cf575 (patch) | |
tree | 7e011fc019f7272b215f06897d892b1589310d83 /include | |
parent | 1e9b6611cc9a7aff0dc62c02f8ea49b38e8bfd78 (diff) | |
download | qtlocation-mapboxgl-4af232dcf347723969aad01d7347ff2cdd8cf575.tar.gz |
image_readers: premultiply alpha
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/platform/default/png_reader.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/platform/default/png_reader.hpp b/include/mbgl/platform/default/png_reader.hpp index f6b5aaf9cf..db20d85e25 100644 --- a/include/mbgl/platform/default/png_reader.hpp +++ b/include/mbgl/platform/default/png_reader.hpp @@ -49,7 +49,7 @@ public: unsigned width() const; unsigned height() const; inline bool has_alpha() const { return has_alpha_; } - bool premultiplied_alpha() const { return false; } //http://www.libpng.org/pub/png/spec/1.1/PNG-Rationale.html + bool premultiplied_alpha() 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); private: void init(); |