summaryrefslogtreecommitdiff
path: root/textwindow.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 /textwindow.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 'textwindow.h')
-rw-r--r--textwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/textwindow.h b/textwindow.h
index 5522392..7d79c40 100644
--- a/textwindow.h
+++ b/textwindow.h
@@ -16,6 +16,7 @@ private:
int drawportHeight;
cRect *vidWin;
cRect oldVidWin;
+ bool initial = false;
bool scaledWindow;
cString text;
cTextWrapper twTextTall;
@@ -48,6 +49,7 @@ public:
void SetText(cString Text) {text = Text;};
bool SetManualPoster(const cRecording *recording, bool fullscreen = false);
void SetPoster(const cEvent *event, const cRecording *recording, bool fullscreen = false);
+ void SetInitial(bool initial) { this->initial = initial; };
};
#endif //__NOPACITY_TEXTWINDOW_H