From 7938f41c11271107301d7f48c00e1a0b968afa1a Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 19 May 2017 17:58:49 +0100 Subject: [PATCH] monitor: invert logic for 4k TV scaling For devices connected via HDMI (supposedly TVs) we want have a scale factor of 1 if we are *below* the smallest 4k resolution width (not equal or above) and do the scaling factor computation if we are above the limit. This check was apparently wrongly ported from gnome-settings-daemon. Based of a patch by Caolan McNamara . https://bugzilla.gnome.org/show_bug.cgi?id=777347 --- src/backends/meta-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c index 03612e564..ce282e55a 100644 --- a/src/backends/meta-monitor.c +++ b/src/backends/meta-monitor.c @@ -1283,7 +1283,7 @@ calculate_scale (MetaMonitor *monitor, { case META_CONNECTOR_TYPE_HDMIA: case META_CONNECTOR_TYPE_HDMIB: - if (resolution_width >= SMALLEST_4K_WIDTH) + if (resolution_width < SMALLEST_4K_WIDTH) goto out; break; default: