From 8ccbc960d354e55d6fc18df9a4e44e05e1c18a39 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 23 Apr 2015 16:52:59 +0100 Subject: Change gtk bitmap render to use scaled content redraw. --- gtk/bitmap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk') 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; -- cgit v1.2.3