From: Carl Hetherington Date: Tue, 19 Dec 2023 19:31:08 +0000 (+0100) Subject: Add some logging to show what's going on with the wxDisplays. X-Git-Tag: v2.16.71~5 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b73b0d73dc2894d8a746f930f1025301e3e712ad Add some logging to show what's going on with the wxDisplays. --- diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 212169d84..3cd25e3ea 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -868,6 +868,18 @@ private: _viewer.panel()->Reparent(_dual_screen); _viewer.panel()->SetFocus(); _dual_screen->Show (); + LOG_DEBUG_PLAYER("Setting up dual screen mode with %1 displays", wxDisplay::GetCount()); + for (auto index = 0U; index < wxDisplay::GetCount(); ++index) { + wxDisplay display(index); + auto client = display.GetClientArea(); + auto mode = display.GetCurrentMode(); + auto geometry = display.GetGeometry(); + LOG_DEBUG_PLAYER("Display %1", index); + LOG_DEBUG_PLAYER(" ClientArea position=(%1, %2) size=(%3, %4)", client.GetX(), client.GetY(), client.GetWidth(), client.GetHeight()); + LOG_DEBUG_PLAYER(" Geometry position=(%1, %2) size=(%3, %4)", geometry.GetX(), geometry.GetY(), geometry.GetWidth(), geometry.GetHeight()); + LOG_DEBUG_PLAYER(" Mode size=(%1, %2)", mode.GetWidth(), mode.GetHeight()); + LOG_DEBUG_PLAYER(" Primary? %1", static_cast(display.IsPrimary())); + } if (wxDisplay::GetCount() > 1) { switch (Config::instance()->image_display()) { case 0: