summaryrefslogtreecommitdiff
path: root/menuitem.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 /menuitem.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 'menuitem.h')
-rw-r--r--menuitem.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/menuitem.h b/menuitem.h
index 26fd744..a3bc30e 100644
--- a/menuitem.h
+++ b/menuitem.h
@@ -54,7 +54,7 @@ public:
virtual void CreateText(void) {};
virtual void SetPoster(void) {};
virtual int CheckScrollable(bool hasIcon) {return 0;};
- virtual void Render() = 0;
+ virtual void Render(bool initial = false) = 0;
};
// avoid confusion between vdr swap() and std::swap() for std::unique_ptr<cNopacityMenuItem>
@@ -78,7 +78,7 @@ public:
void CreatePixmapTextScroller(int totalWidth);
void CreateText(void);
int CheckScrollable(bool hasIcon);
- void Render();
+ void Render(bool initial = false);
};
class cNopacityScheduleMenuItem : public cNopacityMenuItem {
@@ -107,7 +107,7 @@ public:
void CreatePixmapTextScroller(int totalWidth);
void CreateText(void);
int CheckScrollable(bool hasIcon);
- void Render();
+ void Render(bool initial = false);
};
class cNopacityChannelMenuItem : public cNopacityMenuItem {
@@ -132,7 +132,7 @@ public:
void CreatePixmapTextScroller(int totalWidth);
void CreateText(void);
int CheckScrollable(bool hasIcon);
- void Render();
+ void Render(bool initial = false);
};
class cNopacityTimerMenuItem : public cNopacityMenuItem {
@@ -153,7 +153,7 @@ public:
void CreatePixmapTextScroller(int totalWidth);
void CreateText(void);
int CheckScrollable(bool hasIcon);
- void Render();
+ void Render(bool initial = false);
};
class cNopacityRecordingMenuItem : public cNopacityMenuItem {
@@ -192,7 +192,7 @@ public:
void CreateText(void);
void SetPoster(void);
int CheckScrollable(bool hasIcon);
- void Render();
+ void Render(bool initial = false);
};
class cNopacityDefaultMenuItem : public cNopacityMenuItem {
@@ -210,7 +210,7 @@ public:
cNopacityDefaultMenuItem(cOsd *osd, const char *text, bool sel);
~cNopacityDefaultMenuItem(void);
int CheckScrollable(bool hasIcon);
- void Render();
+ void Render(bool initial = false);
};
class cNopacityTrackMenuItem : public cNopacityMenuItem {
@@ -218,6 +218,6 @@ private:
public:
cNopacityTrackMenuItem(cOsd *osd, const char *text);
~cNopacityTrackMenuItem(void);
- void Render();
+ void Render(bool initial = false);
};
#endif //__NOPACITY_MENUITEM_H