diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-16 00:37:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-19 00:44:06 +0100 |
| commit | 17d9f8ba001eb14c3bbaf5cc5ebc37c5c0e1edb9 (patch) | |
| tree | 3549c87c08916fbd07c667377268d1e27c4ae2f1 /src/wx/wx_util.cc | |
| parent | ef2eb8521358684042807dfcec62ce0e5639ec8d (diff) | |
Add option to force short screen layout (#2946).
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index e82ca8e1b..b1cd873fc 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -834,6 +834,10 @@ wx::report_problem() bool layout_for_short_screen(wxWindow* reference) { + if (Config::instance()->layout_for_short_screen()) { + return true; + } + auto const sn = wxDisplay::GetFromWindow(reference); return sn >= 0 && wxDisplay(sn).GetClientArea().height <= 800; } |
