[banshee] [ArtworkManager] Bump the surface cache (bgo#612593)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [ArtworkManager] Bump the surface cache (bgo#612593)
- Date: Fri, 12 Mar 2010 07:23:04 +0000 (UTC)
commit 0f21e7b9d1addb8a2cede20fc3421b8476654162
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Fri Mar 12 18:11:33 2010 +1100
[ArtworkManager] Bump the surface cache (bgo#612593)
The new album grid view is very likely to hold more 1 MiB worth of
pixbufs (32 at 90x90). Bumping the cache size to 2 MiB to avoid
missing cover art images in the grid.
.../Banshee.Collection.Gui/ArtworkManager.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
index 818b91d..55acec8 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
@@ -121,9 +121,9 @@ namespace Banshee.Collection.Gui
if (cache == null) {
int bytes = 4 * size * size;
- int max = (1 << 20) / bytes;
+ int max = (1 << 21) / bytes;
- Log.DebugFormat ("Creating new surface cache for {0}px, {1} KB (max) images, capped at 1 MB ({2} items)",
+ Log.DebugFormat ("Creating new surface cache for {0}px, {1} KB (max) images, capped at 2 MB ({2} items)",
size, bytes, max);
cache = new SurfaceCache (max);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]