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
This commit is contained in:
Christian Kellner 2017-05-19 17:58:49 +01:00
parent 9f41bdb086
commit 7938f41c11

View File

@ -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: