From dd008ca74ba4a924b202021a7d0dbd11cf0dc542 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Sun, 27 Mar 2011 19:22:29 +0200 Subject: [PATCH] allocate tile pixbuf allways --- src/renderer-tiles.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer-tiles.c b/src/renderer-tiles.c index 04c6b225..afc1bd9d 100644 --- a/src/renderer-tiles.c +++ b/src/renderer-tiles.c @@ -491,14 +491,11 @@ static void rt_tile_prepare(RendererTiles *rt, ImageTile *it) rt->tile_cache_size += size; } - if ((pr->zoom != 1.0 || pr->source_tiles_enabled || (pr->pixbuf && gdk_pixbuf_get_has_alpha(pr->pixbuf)) || - pr->orientation != EXIF_ORIENTATION_TOP_LEFT || pr->func_post_process) && !it->pixbuf) + if (!it->pixbuf) { GdkPixbuf *pixbuf; guint size; - { - pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, rt->tile_width, rt->tile_height); - } + pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, rt->tile_width, rt->tile_height); size = gdk_pixbuf_get_rowstride(pixbuf) * rt->tile_height; rt_tile_free_space(rt, size, it); -- 2.20.1