Fix system information on vsync.
authorCarl Hetherington <cth@carlh.net>
Mon, 3 Jun 2019 23:26:10 +0000 (00:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Jun 2019 23:26:10 +0000 (00:26 +0100)
src/wx/film_viewer.h
src/wx/system_information_dialog.cc

index e9450c7e7166a7c92926099fc60577a2e0fcec66..5ddb12bafd0e2045422c60a3a98c2efd6682f286 100644 (file)
@@ -53,6 +53,10 @@ public:
                return _video_view->get();
        }
 
                return _video_view->get();
        }
 
+       VideoView const * video_view () const {
+               return _video_view;
+       }
+
        void show_closed_captions ();
 
        void set_film (boost::shared_ptr<Film>);
        void show_closed_captions ();
 
        void set_film (boost::shared_ptr<Film>);
index 0e19162027570b3222e64af29c12662c34b9c840..592e7c0ef6578f7aba113511fa44921efeade761 100644 (file)
@@ -53,7 +53,7 @@ SystemInformationDialog::SystemInformationDialog (wxWindow* parent, weak_ptr<Fil
        if (!viewer) {
                add (_("unknown"), false);
        } else {
        if (!viewer) {
                add (_("unknown"), false);
        } else {
-               GLVideoView* gl = dynamic_cast<GLVideoView*>(viewer->panel());
+               GLVideoView const * gl = dynamic_cast<GLVideoView const *>(viewer->video_view());
                if (!gl) {
                        add (_("unknown"), false);
                } else {
                if (!gl) {
                        add (_("unknown"), false);
                } else {