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 442c7288654c4fd015c2a77f52b3b38ce9a82d0e (commit) from 6fb527824eda1a4f749d1212a1fcadd680b4bd36 (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/442c7288654c4fd015c2a77f52b3b38ce9a82...
commit 442c7288654c4fd015c2a77f52b3b38ce9a82d0e Author: Cyril Hrubis metan@ucw.cz Date: Sat Dec 21 23:04:27 2013 +0100
loaders: PNG: Enable save for RBGA8888
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/libs/loaders/GP_PNG.c b/libs/loaders/GP_PNG.c index 937bb34..384d599 100644 --- a/libs/loaders/GP_PNG.c +++ b/libs/loaders/GP_PNG.c @@ -459,6 +459,10 @@ static int prepare_png_header(const GP_Context *src, png_structp png, color_type = PNG_COLOR_TYPE_GRAY; break; #endif + case GP_PIXEL_RGBA8888: + bit_depth = 8; + color_type = PNG_COLOR_TYPE_RGB | PNG_COLOR_MASK_ALPHA; + break; default: return 1; break; @@ -482,6 +486,10 @@ static int prepare_png_header(const GP_Context *src, png_structp png, case GP_PIXEL_RGB888: png_set_bgr(png); break; + case GP_PIXEL_RGBA8888: + png_set_bgr(png); + png_set_swap_alpha(png); + break; case GP_PIXEL_G1: case GP_PIXEL_G2: case GP_PIXEL_G4:
-----------------------------------------------------------------------
Summary of changes: libs/loaders/GP_PNG.c | 8 ++++++++ 1 files changed, 8 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.