diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-03 13:16:46 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-10 17:42:46 +0100 |
commit | cb6c9ba9c25e4f265ea34a540e10e6735fbf6a99 (patch) | |
tree | d8f86715f54921ff1afeaf3d9723453f1c23b6c2 /nopacity.c | |
parent | b386b8cab6beb65bfc8e5999273516762d0ee301 (diff) | |
download | skin-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |