diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-14 10:47:49 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-14 11:44:28 +0100 |
| commit | ea435b99a804b755312bcbb9371faa4c0111d43e (patch) | |
| tree | b946906afe6bb804a171848f2c65dbc4d9fef577 /render/theme.c | |
| parent | ec7898dda7bfdd56cfb4d9ff51dddc1c1ab1f00e (diff) | |
Introducing the icon cache.
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
Diffstat (limited to 'render/theme.c')
| -rw-r--r-- | render/theme.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render/theme.c b/render/theme.c index a6931be6..e1cff0cd 100644 --- a/render/theme.c +++ b/render/theme.c @@ -552,6 +552,9 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, theme->def_win_icon = read_c_image(OB_DEFAULT_ICON_WIDTH, OB_DEFAULT_ICON_HEIGHT, OB_DEFAULT_ICON_pixel_data); + theme->def_win_icon_w = OB_DEFAULT_ICON_WIDTH; + theme->def_win_icon_h = OB_DEFAULT_ICON_HEIGHT; + /* read the decoration textures */ if (!read_appearance(db, inst, |
