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/film_viewer.cc | |
| parent | b4e4f2f752bf451e38cf47190a4d4df228ff7db9 (diff) | |
Keep screen awake while playing on Windows (#3095).
Diffstat (limited to 'src/wx/film_viewer.cc')
| -rw-r--r-- | src/wx/film_viewer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 45476c75d..dbda1d7f1 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -86,20 +86,20 @@ rtaudio_callback(void* out, void *, unsigned int frames, double, RtAudioStreamSt } -FilmViewer::FilmViewer(wxWindow* p) +FilmViewer::FilmViewer(wxWindow* p, bool wake) : _closed_captions_dialog(new ClosedCaptionsDialog(p, this)) { #if wxCHECK_VERSION(3, 1, 0) switch (Config::instance()->video_view_type()) { case Config::VIDEO_VIEW_OPENGL: - _video_view = std::make_shared<GLVideoView>(this, p); + _video_view = std::make_shared<GLVideoView>(this, p, wake); break; case Config::VIDEO_VIEW_SIMPLE: - _video_view = std::make_shared<SimpleVideoView>(this, p); + _video_view = std::make_shared<SimpleVideoView>(this, p, wake); break; } #else - _video_view = std::make_shared<SimpleVideoView>(this, p); + _video_view = std::make_shared<SimpleVideoView>(this, p, wake); #endif _video_view->Sized.connect(boost::bind(&FilmViewer::video_view_sized, this)); |
