diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-03 17:10:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-03 17:10:53 +0100 |
| commit | d1e19450e051d70531a6c1f0973bfd6cfd64319b (patch) | |
| tree | c9c3e407501fc170cc3fd77f37700bd7809b5e60 /src/wx/gl_video_view.h | |
| parent | 7851658223286410d5afb1e32bc44b4012ec5f55 (diff) | |
More accurate reporting of whether vsync is enabled.
Diffstat (limited to 'src/wx/gl_video_view.h')
| -rw-r--r-- | src/wx/gl_video_view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index c10f32335..ba4c7cfdc 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -38,6 +38,10 @@ public: } void update (); + bool vsync_enabled () const { + return _vsync_enabled; + } + private: void paint (); void draw (); @@ -46,4 +50,5 @@ private: wxGLContext* _context; GLuint _id; boost::optional<dcp::Size> _size; + bool _vsync_enabled; }; |
