summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
Diffstat (limited to 'image')
-rw-r--r--image/gif.c10
-rw-r--r--image/image_cache.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/image/gif.c b/image/gif.c
index fb0985a45..b11a371c6 100644
--- a/image/gif.c
+++ b/image/gif.c
@@ -155,7 +155,7 @@ static void nsgif_animate(void *p)
delay = gif->gif->frames[gif->current_frame].frame_delay;
if (delay < nsoption_int(minimum_gif_delay))
delay = nsoption_int(minimum_gif_delay);
- guit->browser->schedule(delay * 10, nsgif_animate, gif);
+ guit->misc->schedule(delay * 10, nsgif_animate, gif);
}
if ((!nsoption_bool(animate_images)) ||
@@ -288,7 +288,7 @@ static bool nsgif_convert(struct content *c)
/* Schedule the animation if we have one */
gif->current_frame = 0;
if (gif->gif->frame_count_partial > 1)
- guit->browser->schedule(gif->gif->frames[0].frame_delay * 10,
+ guit->misc->schedule(gif->gif->frames[0].frame_delay * 10,
nsgif_animate,
c);
@@ -351,7 +351,7 @@ static void nsgif_destroy(struct content *c)
nsgif_content *gif = (nsgif_content *) c;
/* Free all the associated memory buffers */
- guit->browser->schedule(-1, nsgif_animate, c);
+ guit->misc->schedule(-1, nsgif_animate, c);
gif_finalise(gif->gif);
free(gif->gif);
}
@@ -403,7 +403,7 @@ static void nsgif_add_user(struct content *c)
if (content_count_users(c) == 1) {
/* First user, and content already converted, so start the animation. */
if (gif->gif->frame_count_partial > 1) {
- guit->browser->schedule(gif->gif->frames[0].frame_delay * 10,
+ guit->misc->schedule(gif->gif->frames[0].frame_delay * 10,
nsgif_animate, c);
}
}
@@ -413,7 +413,7 @@ static void nsgif_remove_user(struct content *c)
{
if (content_count_users(c) == 1) {
/* Last user is about to be removed from this content, so stop the animation. */
- guit->browser->schedule(-1, nsgif_animate, c);
+ guit->misc->schedule(-1, nsgif_animate, c);
}
}
diff --git a/image/image_cache.c b/image/image_cache.c
index 13ec3b97b..4631ee5f3 100644
--- a/image/image_cache.c
+++ b/image/image_cache.c
@@ -288,7 +288,7 @@ static void image_cache__background_update(void *p)
image_cache__clean(icache);
- guit->browser->schedule(icache->params.bg_clean_time,
+ guit->misc->schedule(icache->params.bg_clean_time,
image_cache__background_update,
icache);
}
@@ -370,7 +370,7 @@ image_cache_init(const struct image_cache_parameters *image_cache_parameters)
image_cache->params = *image_cache_parameters;
- guit->browser->schedule(image_cache->params.bg_clean_time,
+ guit->misc->schedule(image_cache->params.bg_clean_time,
image_cache__background_update,
image_cache);
@@ -385,7 +385,7 @@ nserror image_cache_fini(void)
{
unsigned int op_count;
- guit->browser->schedule(-1, image_cache__background_update, image_cache);
+ guit->misc->schedule(-1, image_cache__background_update, image_cache);
LOG("Size at finish %" PRIsizet " (in %d)",
image_cache->total_bitmap_size, image_cache->bitmap_count);