diff options
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index fc8b3dc99..e82ca8e1b 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -42,6 +42,7 @@ #include <dcp/locale_convert.h> #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS +#include <wx/display.h> #include <wx/filepicker.h> #include <wx/progdlg.h> #include <wx/sizer.h> @@ -828,3 +829,12 @@ wx::report_problem() { return std_to_wx(::report_problem()); } + + +bool +layout_for_short_screen(wxWindow* reference) +{ + auto const sn = wxDisplay::GetFromWindow(reference); + return sn >= 0 && wxDisplay(sn).GetClientArea().height <= 800; +} + |
