summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-07-01 20:33:20 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commit8a59a37f8da626f236e00127a28e306fe2d00fc3 (patch)
treecd624b224e5b02018a4f9e7e517b3ab6bc7c0ead
parenta49bdffa1a43a0ac43b0d14fed139632c5a4c4c1 (diff)
downloadatril-8a59a37f8da626f236e00127a28e306fe2d00fc3.tar.bz2
atril-8a59a37f8da626f236e00127a28e306fe2d00fc3.tar.xz
ev-pixbuf-cache: Schedule jobs to render previous pages in inverse order
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ceacd4e
-rw-r--r--libview/ev-pixbuf-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index 875bdb71..17555c6b 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -758,7 +758,7 @@ ev_pixbuf_cache_add_jobs_if_needed (EvPixbufCache *pixbuf_cache,
EV_JOB_PRIORITY_URGENT);
}
- for (i = FIRST_VISIBLE_PREV(pixbuf_cache); i < pixbuf_cache->preload_cache_size; i++) {
+ for (i = pixbuf_cache->preload_cache_size - 1; i >= FIRST_VISIBLE_PREV(pixbuf_cache); i--) {
job_info = (pixbuf_cache->prev_job + i);
page = pixbuf_cache->start_page - pixbuf_cache->preload_cache_size + i;