From 0cd9986f87c0ad678fd112e5b8fc286105599228 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 13 Feb 2008 08:43:57 -0500 Subject: add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache. --- openbox/openbox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openbox') diff --git a/openbox/openbox.c b/openbox/openbox.c index ec6cc44c..f7d820e0 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -168,7 +168,11 @@ gint main(gint argc, gchar **argv) ob_rr_inst = RrInstanceNew(obt_display, ob_screen); if (ob_rr_inst == NULL) ob_exit_with_error(_("Failed to initialize the obrender library.")); - ob_rr_icons = RrImageCacheNew(); + /* Saving 3 resizes of an RrImage makes a lot of sense for icons, as there + are generally 3 icon sizes needed: the titlebar icon, the menu icon, + and the alt-tab icon + */ + ob_rr_icons = RrImageCacheNew(3); XSynchronize(obt_display, xsync); -- cgit v1.2.3