[gnome-control-center] display-panel: Allow for smaller display sizes
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display-panel: Allow for smaller display sizes
- Date: Thu, 11 Feb 2021 02:48:25 +0000 (UTC)
commit 5d4c7c5ee062c74914f83b7c879898714468c02d
Author: Guido Günther <agx sigxcpu org>
Date: Mon Jan 4 16:50:18 2021 +0100
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.
panels/display/cc-display-panel.c | 4 ++--
1 file 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]