summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-02-27 21:39:57 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-27 23:11:39 +0100
commit605bc8c1952ee1cba6d9f8ff098b5930ab6a9912 (patch)
tree280b758ef7c54494a7b415dc40a5ae75e98cf02b /src
parentae52f973231e66ecb82f481ecac0dd10a37d45d9 (diff)
Make content list and buttons taller on low-res displays.attic/800x600-buttons
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_panel.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 18318d4b2..9a3e5ce9a 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -155,9 +155,12 @@ ContentPanel::ContentPanel (wxNotebook* n, shared_ptr<Film> film, weak_ptr<FilmV
/* This is a hack to try and make the content notebook a sensible size; large on big displays but small
enough on small displays to leave space for the content area.
+ Big displays: make the bottom half 600 pixels high, so the content list is big and takes up remaining space.
+ Small displays: make the top half 250 pixels high so we can definitely see all the buttons, even at the
+ expense of height in the bottom half.
*/
if (screen) {
- _splitter->SplitHorizontally (top, _notebook, screen->height > 800 ? -600 : -150);
+ _splitter->SplitHorizontally (top, _notebook, screen->height > 800 ? -600 : 250);
}
_timing_panel = new TimingPanel (this, _film_viewer);