From 32affb0a183db7fad828b2f262896a8b15d24cd0 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Fri, 11 Jun 2021 11:08:08 +0200 Subject: Optimize Flush in display replay Changes in Flush(): This ensures that only one flush is active when the thread is running. Changes in Acton(): Since the first Pixmap::Lock() takes so much longer than the following, the first Pixmap::Lock() was moved before the while loop. This makes the fade-in softer. Add cNopacityDisplayReplay::SetAlpha() for simplification. --- displayreplay.h | 1 + 1 file changed, 1 insertion(+) (limited to 'displayreplay.h') diff --git a/displayreplay.h b/displayreplay.h index bbedabf..12e2a4d 100644 --- a/displayreplay.h +++ b/displayreplay.h @@ -34,6 +34,7 @@ private: virtual void Action(void); void createOSD(void); void CreatePixmaps(void); + void SetAlpha(int Alpha = 0); void DrawBackground(void); void DrawDate(void); void LoadControlIcons(void); -- cgit v1.2.3