From d375c36972ff3a01b7979984b5a1043eb4c807b0 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 31 May 2010 15:57:33 +0000 Subject: Use a dynamic pixbuf cache size based on document page size Instead of using a static number of pages to cache, we use a size in bytes, and the number of pages that will be cached depends on the current zoom level. It allows us caching more pages for lower scale factors and increase zoom level by caching fewer pages. See bug #303365. --- (limited to 'cut-n-paste/zoom-control') diff --git a/cut-n-paste/zoom-control/ephy-zoom.h b/cut-n-paste/zoom-control/ephy-zoom.h index 293880a..bf01f0d 100644 --- a/cut-n-paste/zoom-control/ephy-zoom.h +++ b/cut-n-paste/zoom-control/ephy-zoom.h @@ -57,7 +57,11 @@ zoom_levels[] = { N_("175%"), 1.6817928304 }, { N_("200%"), 2.0 }, { N_("300%"), 2.8284271247 }, - { N_("400%"), 4.0 } + { N_("400%"), 4.0 }, + { N_("800%"), 8.0 }, + { N_("1600%"), 16.0 }, + { N_("3200%"), 32.0 }, + { N_("6400%"), 64.0 } }; static const guint n_zoom_levels = G_N_ELEMENTS (zoom_levels); -- cgit v0.9.1