diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-13 23:19:04 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-13 23:19:04 +0100 |
commit | f37e52c39475e6efd3740c5ae1ec4f290662928f (patch) | |
tree | 88d01618e903975743a3cb74bff9bf8df54c2a45 /image/image_cache.c | |
parent | 7a28131e4953934150967eb7886bc06678e249e8 (diff) | |
download | netsurf-f37e52c39475e6efd3740c5ae1ec4f290662928f.tar.gz netsurf-f37e52c39475e6efd3740c5ae1ec4f290662928f.tar.bz2 |
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.
Diffstat (limited to 'image/image_cache.c')
-rw-r--r-- | image/image_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |