From bde0fc5d1f2766c7376511a629b8667248242db1 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sun, 6 Jun 2021 14:59:51 +0200 Subject: 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. --- textwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'textwindow.h') 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 -- cgit v1.2.3