summaryrefslogtreecommitdiff
path: root/displaymenu.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 /displaymenu.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 'displaymenu.h')
-rw-r--r--displaymenu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/displaymenu.h b/displaymenu.h
index 890ffa5..dff7ae8 100644
--- a/displaymenu.h
+++ b/displaymenu.h
@@ -34,6 +34,7 @@ private:
void DrawTimers(bool timersChanged, int numConflicts);
void SplitItem(const char *Text, cString *strItems, int *tabItems);
void SetButtonPositions(void);
+ void SetAlpha(int Alpha = 0, bool force = false);
virtual void Action(void);
protected:
int Tab(int n);