Mercurial > hg > forks > geeqie
changeset 1910:3f0837f71acc
allocate tile pixbuf allways
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Sun, 27 Mar 2011 19:22:29 +0200 |
parents | caca32ccd945 |
children | 225b72ae0482 |
files | src/renderer-tiles.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/renderer-tiles.c Sun Mar 27 18:20:19 2011 +0200 +++ b/src/renderer-tiles.c Sun Mar 27 19:22:29 2011 +0200 @@ -491,14 +491,11 @@ 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);