diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-16 13:57:27 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-10 16:42:52 +0100 |
commit | 03337e57fdd83344d9b24ffcad394e76d5f92007 (patch) | |
tree | 45076068b910c2269bd14764b923b0391af4253b /skinnopacity.c | |
parent | daf3245de7437d287dc101db1d262848b2e4ad50 (diff) | |
download | skin-nopacity-03337e57fdd83344d9b24ffcad394e76d5f92007.tar.gz skin-nopacity-03337e57fdd83344d9b24ffcad394e76d5f92007.tar.bz2 |
Make imgCache global
Make imgcache global so that it doesn't always have to be passed
explicitly to other functions.
Diffstat (limited to 'skinnopacity.c')
-rw-r--r-- | skinnopacity.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/skinnopacity.c b/skinnopacity.c index cd55819..4936085 100644 --- a/skinnopacity.c +++ b/skinnopacity.c @@ -24,7 +24,6 @@ static const char *MAINMENUENTRY = "nOpacity"; class cPluginNopacity : public cPlugin { private: cNopacity *nopacity; - cImageCache *imgCache; public: cPluginNopacity(void); virtual ~cPluginNopacity(); @@ -108,13 +107,11 @@ bool cPluginNopacity::Start(void) { } else dsyslog("nopacity: TrueColor OSD found"); - imgCache = new cImageCache(); - nopacity = new cNopacity(imgCache); + nopacity = new cNopacity(); return nopacity; } void cPluginNopacity::Stop(void) { - delete imgCache; } void cPluginNopacity::Housekeeping(void) { @@ -136,7 +133,7 @@ cOsdObject *cPluginNopacity::MainMenuAction(void) { } cMenuSetupPage *cPluginNopacity::SetupMenu(void) { - return new cNopacitySetup(imgCache); + return new cNopacitySetup(); } bool cPluginNopacity::SetupParse(const char *Name, const char *Value) { |