diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-09 00:39:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-10 21:13:45 +0200 |
| commit | b2c2a9e6ec7a4f8ef8e31f97d4feece18c9c3286 (patch) | |
| tree | 4d4c6a724d29396e1e0529e142cf188ccdba4cda /src/wx/video_view.h | |
| parent | b4e4f2f752bf451e38cf47190a4d4df228ff7db9 (diff) | |
Keep screen awake while playing on Windows (#3095).
Diffstat (limited to 'src/wx/video_view.h')
| -rw-r--r-- | src/wx/video_view.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wx/video_view.h b/src/wx/video_view.h index 422323fe7..6a4c2225e 100644 --- a/src/wx/video_view.h +++ b/src/wx/video_view.h @@ -24,6 +24,7 @@ #include "optimisation.h" +#include "lib/cross.h" #include "lib/dcpomatic_time.h" #include "lib/exception_store.h" #include "lib/signaller.h" @@ -48,7 +49,7 @@ class wxWindow; class VideoView : public ExceptionStore, public Signaller { public: - VideoView(FilmViewer* viewer); + VideoView(FilmViewer* viewer, bool wake); virtual ~VideoView() {} VideoView(VideoView const&) = delete; @@ -198,6 +199,8 @@ private: struct timeval _dropped_check_period_start; int _errored = 0; int _gets = 0; + bool _wake; + Waker _waker; }; |
