diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-23 16:52:59 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-23 22:50:10 +0100 |
commit | 8ccbc960d354e55d6fc18df9a4e44e05e1c18a39 (patch) | |
tree | 03572f3b77ce5876e21301e7fbb5fcbe2e742259 /gtk/bitmap.c | |
parent | ea2e1c4d987421ff8b96a098566c6bd24bac3bef (diff) | |
download | netsurf-8ccbc960d354e55d6fc18df9a4e44e05e1c18a39.tar.gz netsurf-8ccbc960d354e55d6fc18df9a4e44e05e1c18a39.tar.bz2 |
Change gtk bitmap render to use scaled content redraw.
Diffstat (limited to 'gtk/bitmap.c')
-rw-r--r-- | gtk/bitmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/bitmap.c b/gtk/bitmap.c index 6e53154c4..fa86ff178 100644 --- a/gtk/bitmap.c +++ b/gtk/bitmap.c @@ -33,7 +33,6 @@ #include "content/content.h" #include "image/bitmap.h" #include "desktop/plotters.h" -#include "desktop/thumbnail.h" #include "gtk/scaffolding.h" #include "gtk/plotters.h" @@ -441,8 +440,8 @@ int nsgtk_bitmap_get_height(void *vbitmap) /** * Render content into a bitmap. * - * \param content content structure to thumbnail - * \param bitmap the bitmap to draw to + * \param bitmap The bitmap to draw to + * \param content The content to render * \return true on success and bitmap updated else false */ static nserror @@ -489,7 +488,7 @@ bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content) current_cr = cairo_create(surface); /* render the content */ - thumbnail_redraw(content, cwidth, cheight, &ctx); + content_scaled_redraw(content, cwidth, cheight, &ctx); cairo_destroy(current_cr); current_cr = old_cr; |