summaryrefslogtreecommitdiff
path: root/displaymenuview.h
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-06-06 14:59:51 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-12 13:53:53 +0200
commitbde0fc5d1f2766c7376511a629b8667248242db1 (patch)
treedb6f1504a6688213f9cea6724df9083bf19bcfac /displaymenuview.h
parent0d8dc799b8ffc13784ca80a62deae6b53cc655bc (diff)
downloadskin-nopacity-bde0fc5d1f2766c7376511a629b8667248242db1.tar.gz
skin-nopacity-bde0fc5d1f2766c7376511a629b8667248242db1.tar.bz2
Optimize Flush in display menu
These changes ensures that only one flush is active when the fade-in thread is running. The first Pixmap::Lock() in cNopacityDisplayMenu::Action() takes so much longer than the following, Thats why the first Pixmap::Lock() was moved before the while loop. This makes the fade-in softer. The DetailView thread was eliminated.
Diffstat (limited to 'displaymenuview.h')
-rw-r--r--displaymenuview.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/displaymenuview.h b/displaymenuview.h
index a644c45..d212693 100644
--- a/displaymenuview.h
+++ b/displaymenuview.h
@@ -16,6 +16,7 @@ class cNopacityDisplayMenuView {
cOsd *osd;
cString lastDate;
int diskUsageAlert;
+ bool menuAdjustLeft;
cPixmap *pixmapHeader;
cPixmap *pixmapHeaderForeground;
cPixmap *pixmapHeaderLogo;
@@ -58,8 +59,8 @@ class cNopacityDisplayMenuView {
cRect *GetDescriptionTextWindowSize(eMenuCategory menuCat);
void AdjustContentBackground(eMenuCategory menuCat, eMenuCategory menuCatLast, cRect & vidWin);
int ShowHeaderLogo(bool show);
- int DrawHeaderIcon(eMenuCategory menuCat);
- int ShowHeaderIconChannelLogo(const char *Title);
+ int DrawHeaderIcon(eMenuCategory menuCat, bool initial = false);
+ int ShowHeaderIconChannelLogo(const char *Title, bool initial = false);
void DestroyHeaderIcon(void);
void DrawHeaderLabel(int left, cString label);
void DrawDate(bool initial);