From df18a971435c35963bb8ea94efc0d5326ad66ff0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 30 Dec 2011 00:58:35 +0000 Subject: Change GTK plotting to use cairo surfaces throughout svn path=/trunk/netsurf/; revision=13354 --- image/image_cache.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'image/image_cache.c') 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 #include -#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) -- cgit v1.2.3