More accurate reporting of whether vsync is enabled.
[dcpomatic.git] / src / wx / gl_video_view.h
index 42a3f89ba8236ae6b88407c876fd9b53a094d310..ba4c7cfdc92df3a32afbc9642f3de5d8264b8fdc 100644 (file)
@@ -23,7 +23,6 @@
 #include <wx/glcanvas.h>
 #include <dcp/util.h>
 #include <boost/shared_ptr.hpp>
-
 #undef None
 #undef Success
 
@@ -39,6 +38,10 @@ public:
        }
        void update ();
 
+       bool vsync_enabled () const {
+               return _vsync_enabled;
+       }
+
 private:
         void paint ();
         void draw ();
@@ -47,4 +50,5 @@ private:
         wxGLContext* _context;
         GLuint _id;
         boost::optional<dcp::Size> _size;
+       bool _vsync_enabled;
 };