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 bc1b6594de0de8e6f717e824e3ded14e95b95870 (commit) from 108607fa657f1e25d17ee497bfc1b840f5e9ac0c (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/bc1b6594de0de8e6f717e824e3ded14e95b95...
commit bc1b6594de0de8e6f717e824e3ded14e95b95870 Author: Cyril Hrubis metan@ucw.cz Date: Sun Oct 2 17:46:59 2011 +0200
Some small fixes for grinder.
diff --git a/demos/grinder/grinder.c b/demos/grinder/grinder.c index 8da1833..a2f6d4d 100644 --- a/demos/grinder/grinder.c +++ b/demos/grinder/grinder.c @@ -164,11 +164,17 @@ static GP_RetCode scale(GP_Context **c, const char *params) &alg, &w, &h)) return GP_EINVAL;
- if (w == -1 || h == -1) { + if (w == -1 && h == -1) { print_error("scale: w and/or h missing"); return GP_EINVAL; }
+ if (w == -1) + w = (*c)->w * (1.00 * h/(*c)->h) + 0.5; + + if (h == -1) + h = (*c)->h * (1.00 * w/(*c)->w) + 0.5; + GP_Context *res = NULL;
res = GP_FilterResize(*c, progress_callback, alg, w, h); @@ -304,15 +310,8 @@ static GP_RetCode blur(GP_Context **c, const char *params) return GP_EINVAL; } - GP_Context *res = NULL; + GP_FilterGaussianBlur_Raw(*c, *c, progress_callback, sigma, sigma);
- res = GP_FilterGaussianBlur(*c, progress_callback, sigma, sigma); - - if (res == NULL) - return GP_EINVAL; - - GP_ContextFree(*c); - *c = res;
return GP_ESUCCESS; }
-----------------------------------------------------------------------
Summary of changes: demos/grinder/grinder.c | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 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.