From 48a44e8ebd8edfeea9f81c66f41c5139e9a68c30 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Nov 2021 22:48:56 +0100 Subject: [PATCH] DROP: Add some size debugging. --- src/wx/gl_video_view.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 877cd5125..bbdb0c727 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -30,12 +30,13 @@ #include "film_viewer.h" #include "wx_util.h" -#include "lib/image.h" +#include "lib/butler.h" +#include "lib/cross.h" #include "lib/dcpomatic_assert.h" +#include "lib/dcpomatic_log.h" #include "lib/exceptions.h" -#include "lib/cross.h" +#include "lib/image.h" #include "lib/player_video.h" -#include "lib/butler.h" #include #include @@ -104,6 +105,7 @@ void GLVideoView::size_changed (wxSizeEvent const& ev) { _canvas_size = ev.GetSize (); + LOG_GENERAL("GLVideoView canvas size changed to %1x%2", ev.GetSize().GetWidth(), ev.GetSize().GetHeight()); Sized (); } @@ -534,6 +536,7 @@ GLVideoView::set_image (shared_ptr pv) int const canvas_height = canvas_size.GetHeight(); auto const inter_position = player_video().first->inter_position(); auto const inter_size = player_video().first->inter_size(); + LOG_GENERAL("Image inter_size is %1x%2", inter_size.width, inter_size.height); auto const out_size = player_video().first->out_size(); auto x_offset = std::max(0, (canvas_width - out_size.width) / 2); -- 2.30.2