diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-05 14:16:08 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-10 17:44:59 +0100 |
commit | 1d6f6a764e1e8b4f66476668828295418448eb7e (patch) | |
tree | d8056b2d626160aa9fb46625844f4f8936b23923 /setup.c | |
parent | cb6c9ba9c25e4f265ea34a540e10e6735fbf6a99 (diff) | |
download | skin-nopacity-1d6f6a764e1e8b4f66476668828295418448eb7e.tar.gz skin-nopacity-1d6f6a764e1e8b4f66476668828295418448eb7e.tar.bz2 |
Simplify cImageCache
- Merge CreateCache(void) and CreateCacheDelayed(void)
and move CreateCache() to cImageCache::cImageCache().
This allows a new instance of imgCache to be created
after configuration changes.
- Eliminate cImageCache::Reload()
cImageCache::Reload() is no longer required.
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,7 +13,8 @@ cNopacitySetup::~cNopacitySetup() { geoManager->SetGeometry(); delete fontManager; fontManager = new cFontManager(); - imgCache->Reload(); + delete imgCache; + imgCache = new cImageCache(); dsyslog("nopacity: Cache reloaded in %d ms", int(cTimeMs::Now()-start)); } |