From f37e52c39475e6efd3740c5ae1ec4f290662928f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 13 Apr 2015 23:19:04 +0100 Subject: Move bitmap operations into an operation table. The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library. --- image/image_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image/image_cache.c') diff --git a/image/image_cache.c b/image/image_cache.c index 565636c06..ac3679081 100644 --- a/image/image_cache.c +++ b/image/image_cache.c @@ -229,7 +229,7 @@ static void image_cache__free_bitmap(struct image_cache_entry_s *centry) image_cache->current_age - centry->bitmap_age, centry->redraw_count)); #endif - bitmap_destroy(centry->bitmap); + guit->bitmap->destroy(centry->bitmap); centry->bitmap = NULL; image_cache->total_bitmap_size -= centry->bitmap_size; image_cache->bitmap_count--; @@ -484,7 +484,7 @@ nserror image_cache_add(struct content *content, /* set bitmap entry if one is passed, free extant one if present */ if (bitmap != NULL) { if (centry->bitmap != NULL) { - bitmap_destroy(centry->bitmap); + guit->bitmap->destroy(centry->bitmap); } else { image_cache_stats_bitmap_add(centry); } -- cgit v1.2.3