This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 34edb5f159d98fccc62cfdcd268f51109320dafd (commit) from e667b1019551a0036d4ff8e7852bc51e2336440c (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/34edb5f159d98fccc62cfdcd268f51109320d...
commit 34edb5f159d98fccc62cfdcd268f51109320dafd Author: Cyril Hrubis metan@ucw.cz Date: Fri Apr 25 22:39:02 2014 +0200
loaders: PNG: Enable 8bit grayscale with alpha.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/libs/loaders/GP_PNG.c b/libs/loaders/GP_PNG.c index 770bb123..0ea37379 100644 --- a/libs/loaders/GP_PNG.c +++ b/libs/loaders/GP_PNG.c @@ -145,6 +145,13 @@ GP_Context *GP_ReadPNG(GP_IO *io, GP_ProgressCallback *callback) #endif } break; + case PNG_COLOR_TYPE_GRAY | PNG_COLOR_MASK_ALPHA: + switch (depth) { + case 8: + pixel_type = GP_PIXEL_GA88; + break; + } + break; case PNG_COLOR_TYPE_RGB:
png_set_bgr(png);
-----------------------------------------------------------------------
Summary of changes: libs/loaders/GP_PNG.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.