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/gif.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/gif.c')
-rw-r--r-- | image/gif.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/image/gif.c b/image/gif.c index 098287573..8cb89c7d7 100644 --- a/image/gif.c +++ b/image/gif.c @@ -39,6 +39,7 @@ #include "content/hlcache.h" #include "desktop/options.h" #include "desktop/plotters.h" +#include "image/image.h" #include "image/bitmap.h" #include "image/gif.h" #include "utils/log.h" @@ -337,7 +338,6 @@ static bool nsgif_redraw(struct content *c, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx) { nsgif_content *gif = (nsgif_content *) c; - bitmap_flags_t flags = BITMAPF_NONE; if (gif->current_frame != gif->gif->decoded_frame) { if (nsgif_get_frame(gif) != GIF_OK) { @@ -345,16 +345,7 @@ static bool nsgif_redraw(struct content *c, struct content_redraw_data *data, } } - if ((data->width == -1) && (data->height == -1)) - return true; - - 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, - gif->gif->frame_image, data->background_colour, flags); + return image_bitmap_plot(gif->gif->frame_image, data, clip, ctx); } |