diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-12-30 00:58:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-12-30 00:58:35 +0000 |
commit | df18a971435c35963bb8ea94efc0d5326ad66ff0 (patch) | |
tree | 0f0ccea83c6f4cd82d7195478d7bd35f7ae89e31 /image/image_cache.c | |
parent | 4dd695c156879ad845a33ad8ef9748b0f54a4f1a (diff) | |
download | netsurf-df18a971435c35963bb8ea94efc0d5326ad66ff0.tar.gz netsurf-df18a971435c35963bb8ea94efc0d5326ad66ff0.tar.bz2 |
Change GTK plotting to use cairo surfaces throughout
svn path=/trunk/netsurf/; revision=13354
Diffstat (limited to 'image/image_cache.c')
-rw-r--r-- | image/image_cache.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/image/image_cache.c b/image/image_cache.c index 354aee2ce..c31d3e964 100644 --- a/image/image_cache.c +++ b/image/image_cache.c @@ -22,13 +22,12 @@ #include <stdbool.h> #include <string.h> -#include "utils/errors.h" -#include "utils/utils.h" -#include "utils/log.h" -#include "utils/config.h" #include "utils/schedule.h" +#include "utils/log.h" #include "content/content_protected.h" + #include "image/image_cache.h" +#include "image/image.h" /** Age of an entry within the cache * @@ -712,7 +711,6 @@ bool image_cache_redraw(struct content *c, const struct rect *clip, const struct redraw_context *ctx) { - bitmap_flags_t flags = BITMAPF_NONE; struct image_cache_entry_s *centry; /* get the cache entry */ @@ -746,14 +744,7 @@ bool image_cache_redraw(struct content *c, centry->redraw_count++; centry->redraw_age = image_cache->current_age; - /* do the plot */ - if (data->repeat_x) - flags |= BITMAPF_REPEAT_X; - if (data->repeat_y) - flags |= BITMAPF_REPEAT_Y; - - return ctx->plot->bitmap(data->x, data->y, data->width, data->height, - centry->bitmap, data->background_colour, flags); + return image_bitmap_plot(centry->bitmap, data, clip, ctx); } void image_cache_destroy(struct content *content) |