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 8aab7a816e45ba2fcfd256ab48bb36aa350c98f9 (commit) from 965a9237db419f83183eb4a59fc9bc741782093e (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/8aab7a816e45ba2fcfd256ab48bb36aa350c9...
commit 8aab7a816e45ba2fcfd256ab48bb36aa350c98f9 Author: Cyril Hrubis metan@ucw.cz Date: Sun May 27 15:34:52 2012 +0200
spiv: Resize backend to fit image on pressing 1.
diff --git a/demos/spiv/spiv.c b/demos/spiv/spiv.c index 91b9f35..9862049 100644 --- a/demos/spiv/spiv.c +++ b/demos/spiv/spiv.c @@ -171,9 +171,10 @@ int load_image(struct loader_params *params) * This function tries to resize spiv window * and if succedes blits the image directly to the screen. */ -static int resize_backend_and_blit(GP_Context *img, - struct loader_params *params) +static int resize_backend_and_blit(struct loader_params *params) { + GP_Context *img = params->img; + if (GP_BackendResize(backend, img->w, img->h)) return 1;
@@ -236,6 +237,7 @@ static void *image_loader(void *ptr) if (rat < 1) { cpu_timer_start(&timer, "Blur"); callback.priv = "Blurring Image"; + //TODO: We can't blur saved image! if (GP_FilterGaussianBlur(img, img, 0.4/rat, 0.4/rat, &callback) == NULL) return NULL; @@ -587,6 +589,9 @@ int main(int argc, char *argv[]) params.show_progress_once = 1; show_image(¶ms, argv[argn]); break; + case GP_KEY_1: + resize_backend_and_blit(¶ms); + break; } break; case GP_EV_SYS:
-----------------------------------------------------------------------
Summary of changes: demos/spiv/spiv.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 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.