monitor-config-manager-kms: Fix is_transform_handled

meta_monitor_manager_kms_is_transform_handled should checked the
transform passed as function argument, not the current crtc transform.

https://bugzilla.gnome.org/show_bug.cgi?id=787836
This commit is contained in:
Hans de Goede 2017-09-17 16:21:46 +02:00 committed by Carlos Garnacho
parent 1035200f26
commit 7e3a780dcd

View File

@ -1782,7 +1782,7 @@ meta_monitor_manager_kms_is_transform_handled (MetaMonitorManager *manager,
{ {
MetaCrtcKms *crtc_kms = crtc->driver_private; MetaCrtcKms *crtc_kms = crtc->driver_private;
if ((1 << crtc->transform) & crtc_kms->all_hw_transforms) if ((1 << transform) & crtc_kms->all_hw_transforms)
return TRUE; return TRUE;
else else
return FALSE; return FALSE;