From 102bb825aa323328568a76741e3ba19dd747f194 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Fri, 10 Feb 2023 00:47:23 +0100 Subject: [PATCH] Adding progressbar to the Rush magic tool. --- magic/src/perspective.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/magic/src/perspective.c b/magic/src/perspective.c index 0c9f6ca94..7fe008eeb 100644 --- a/magic/src/perspective.c +++ b/magic/src/perspective.c @@ -534,6 +534,9 @@ void perspective_release(magic_api * api, int which, aux1 = api->scale(last, last->w, last->h, 0); for (h = 0; h < h2 - h1; h++) { + if (h % 10 == 0) { + api->update_progress_bar(); + } hh = h2 - h; w = canvas->w * hh / canvas->h; scaled_surf = api->rotate_scale(aux1, 0, w);