summaryrefslogtreecommitdiff
path: root/nopacity.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-03 13:16:46 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-10 17:42:46 +0100
commitcb6c9ba9c25e4f265ea34a540e10e6735fbf6a99 (patch)
treed8f86715f54921ff1afeaf3d9723453f1c23b6c2 /nopacity.c
parentb386b8cab6beb65bfc8e5999273516762d0ee301 (diff)
downloadskin-nopacity-cb6c9ba9c25e4f265ea34a540e10e6735fbf6a99.tar.gz
skin-nopacity-cb6c9ba9c25e4f265ea34a540e10e6735fbf6a99.tar.bz2
Simplify cGeometryManager
- Initiate osdLeft, osdTop, osdWidth and osdHeight with 0 in cGeometryManager::cGeometryManager(). - cGeometryManager::GeometryChanged(void) is renamed to cGeometryManager::SetOSDSize(void) and merged to set osdLeft, osdTop, osdWidth and osdHeight to cOsd::*. The cache is now created via cNopacity::SetOSDSize(void) when the skin is started for the first time or when the geometry is changed. All SetDisplay*() were merged and moved to cGeometryManager::SetGeometry. So we can delete then all unnecessary funktions.
Diffstat (limited to 'nopacity.c')
-rw-r--r--nopacity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nopacity.c b/nopacity.c
index 98c8a96..073eb9b 100644
--- a/nopacity.c
+++ b/nopacity.c
@@ -70,7 +70,7 @@ cSkinDisplayMessage *cNopacity::DisplayMessage(void) {
}
void cNopacity::ReloadCaches(void) {
- if (geoManager->GeometryChanged() || imgCache->ThemeChanged()) {
+ if (geoManager->SetOSDSize() || imgCache->ThemeChanged()) {
int start = cTimeMs::Now();
config.LoadDefaults();
config.SetThemeSpecificDefaults();