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 /displayreplay.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 'displayreplay.c')
-rw-r--r-- | displayreplay.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/displayreplay.c b/displayreplay.c index 9cf0d29..6cfd7c7 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -3,8 +3,7 @@ #include "helpers.h" #include "imageloader.h" -cNopacityDisplayReplay::cNopacityDisplayReplay(cImageCache *imgCache, bool ModeOnly) { - this->imgCache = imgCache; +cNopacityDisplayReplay::cNopacityDisplayReplay(bool ModeOnly) { initial = true; modeOnly = ModeOnly; lastDate = ""; @@ -468,7 +467,7 @@ void cNopacityDisplayReplay::SetMessage(eMessageType Type, const char *Text) { DELETENULL(messageBox); if (!Text) return; - messageBox = new cNopacityMessageBox(osd, imgCache, + messageBox = new cNopacityMessageBox(osd, cRect((geoManager->replayWidth - geoManager->messageWidth) / 2, geoManager->replayHeight - geoManager->messageHeight - 20, geoManager->messageWidth, geoManager->messageHeight), |