mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
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:
parent
9f41bdb086
commit
7938f41c11
@ -1283,7 +1283,7 @@ calculate_scale (MetaMonitor *monitor,
|
|||||||
{
|
{
|
||||||
case META_CONNECTOR_TYPE_HDMIA:
|
case META_CONNECTOR_TYPE_HDMIA:
|
||||||
case META_CONNECTOR_TYPE_HDMIB:
|
case META_CONNECTOR_TYPE_HDMIB:
|
||||||
if (resolution_width >= SMALLEST_4K_WIDTH)
|
if (resolution_width < SMALLEST_4K_WIDTH)
|
||||||
goto out;
|
goto out;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user