[mutter] monitor: invert logic for 4k TV scaling



commit 7938f41c11271107301d7f48c00e1a0b968afa1a
Author: Christian Kellner <christian kellner me>
Date:   Fri May 19 17:58:49 2017 +0100

    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 <caolanm redhat com>.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777347

 src/backends/meta-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c
index 03612e5..ce282e5 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]