From 921e681d6e4bde33c6652905dcebf4e7259cf14e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 16 Jan 2025 00:14:46 +0100 Subject: Extract layout_for_short_screen(). --- src/tools/dcpomatic_kdm.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/tools') diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index 0c0af4a96..d554107cd 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -62,7 +62,6 @@ #include #include LIBDCP_DISABLE_WARNINGS -#include #include #include #include @@ -228,15 +227,9 @@ public: h->SetFont (subheading_font); right->Add(h, 0, wxTOP, DCPOMATIC_SUBHEADING_TOP_PAD); - int const sn = wxDisplay::GetFromWindow(this); - if (sn >= 0) { - auto const screen = wxDisplay(sn).GetClientArea(); - if (screen.height <= 800) { - _output = new ShortKDMOutputPanel(overall_panel); - } - } - - if (!_output) { + if (layout_for_short_screen(this)) { + _output = new ShortKDMOutputPanel(overall_panel); + } else { _output = new TallKDMOutputPanel(overall_panel); } -- cgit v1.2.3