Bloom: Show progress bar while working
This commit is contained in:
parent
7d8cefe6d7
commit
29d7d28614
1 changed files with 4 additions and 0 deletions
|
|
@ -221,6 +221,10 @@ void bloom_release(magic_api * api, int which ATTRIBUTE_UNUSED,
|
|||
SDL_BlitSurface(snapshot, NULL, canvas, NULL);
|
||||
|
||||
for (y = 0; y < canvas->h; y++) {
|
||||
if (y % 10 == 0) {
|
||||
api->update_progress_bar();
|
||||
}
|
||||
|
||||
for (x = 0; x < canvas->w; x++) {
|
||||
if (bloom_mask[y * canvas->w + x] > 0) {
|
||||
sums[0] = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue