diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-06-06 14:59:51 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-07-12 13:53:53 +0200 |
commit | bde0fc5d1f2766c7376511a629b8667248242db1 (patch) | |
tree | db6f1504a6688213f9cea6724df9083bf19bcfac /detailview.h | |
parent | 0d8dc799b8ffc13784ca80a62deae6b53cc655bc (diff) | |
download | skin-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 'detailview.h')
-rw-r--r-- | detailview.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/detailview.h b/detailview.h index 5a7fca2..3454b28 100644 --- a/detailview.h +++ b/detailview.h @@ -28,7 +28,7 @@ enum eMediaViewTabs { mvtCount }; -class cNopacityView : public cThread { +class cNopacityView { protected: cOsd *osd; cPixmap *pixmapHeader; @@ -87,7 +87,7 @@ public: virtual void KeyLeft(void) {}; virtual void KeyRight(void) {}; void DrawScrollbar(void); - virtual void Action(void) {}; + virtual void Render(void) {}; }; class cNopacityEPGView : public cNopacityView { @@ -106,7 +106,7 @@ public: void SetAlpha(int Alpha = 0); void KeyLeft(void); void KeyRight(void); - void Action(void); + void Render(void); }; class cNopacitySeriesView : public cNopacityView { @@ -128,7 +128,7 @@ public: void LoadMedia(void); void KeyLeft(void); void KeyRight(void); - void Action(void); + void Render(void); }; class cNopacityMovieView : public cNopacityView { @@ -148,7 +148,7 @@ public: void LoadMedia(void); void KeyLeft(void); void KeyRight(void); - void Action(void); + void Render(void); }; class cNopacityTextView : public cNopacityView { @@ -159,7 +159,7 @@ public: void SetAlpha(int Alpha = 0); void KeyLeft(void); void KeyRight(void); - void Action(void); + void Render(void); }; #endif //__NOPACITY_DETAILVIEW_H |