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, generate has been updated via db2ff5df0a89ee8d2eff8daea4e099c7d3190b28 (commit) from 9d6d86ef03509cf3135a0ae7aaa6641ff31b83ac (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/db2ff5df0a89ee8d2eff8daea4e099c7d3190...
commit db2ff5df0a89ee8d2eff8daea4e099c7d3190b28 Author: Cyril Hrubis metan@ucw.cz Date: Mon Oct 31 23:04:16 2011 +0100
fbshow: workaround for grayscale images.
diff --git a/demos/fbshow/fbshow.c b/demos/fbshow/fbshow.c index 8b399ed..c9d86c8 100644 --- a/demos/fbshow/fbshow.c +++ b/demos/fbshow/fbshow.c @@ -61,6 +61,18 @@ static GP_Context *image_to_display(GP_Context *img, uint32_t w, uint32_t h) float rat = calc_img_size(img->w, img->h, w, h);
// GP_FilterGaussianBlur(img, img, 1, 1, NULL); + + /* Workaround */ + if (img->pixel_type != GP_PIXEL_RGB888) { + GP_Context *tmp; + tmp = GP_ContextConvert(img, GP_PIXEL_RGB888); + + GP_ContextFree(img); + img = tmp; + + if (img == NULL) + return NULL; + }
return GP_FilterResize(img, NULL, GP_INTERP_CUBIC, img->w * rat, img->h * rat, NULL); }
-----------------------------------------------------------------------
Summary of changes: demos/fbshow/fbshow.c | 12 ++++++++++++ 1 files changed, 12 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.