summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2021-01-04 16:50:18 +0100
committerRobert Ancell <robert.ancell@gmail.com>2021-02-11 02:44:19 +0000
commit5d4c7c5ee062c74914f83b7c879898714468c02d (patch)
tree99c64f5fa4870227a7ad171f95b9467180dc57fe
parent7446e1eebd74fa3cd2d4a7e3c1613b523afb85d1 (diff)
downloadgnome-control-center-5d4c7c5ee062c74914f83b7c879898714468c02d.tar.gz
display-panel: Allow for smaller display sizes
This makes scaling work e.g. on the Librem 5's built-in display which has a 720x1440 resolution. It's scaled to 200% by default so currently hitting the 100% button makes it scale to 100% but then the 200% button vanishes due to assumed too small resultion. Fix that by allowing for 360x720 as well.
-rw-r--r--panels/display/cc-display-panel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index dfb914064..93c983f89 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -42,8 +42,8 @@
* Note that WIDTH is assumed to be the larger size and we accept portrait
* mode too effectively (in principle we should probably restrict the rotation
* setting in that case). */
-#define MINIMUM_WIDTH 740
-#define MINIMUM_HEIGHT 530
+#define MINIMUM_WIDTH 720
+#define MINIMUM_HEIGHT 360
#define PANEL_PADDING 32
#define SECTION_PADDING 32