diff --git a/hw/xfree86/ddc/edid.h b/hw/xfree86/ddc/edid.h index e0d1539e2e..e3650dfae5 100644 --- a/hw/xfree86/ddc/edid.h +++ b/hw/xfree86/ddc/edid.h @@ -12,6 +12,7 @@ #ifndef _EDID_H_ #define _EDID_H_ +#include #include #include #include @@ -204,4 +205,12 @@ typedef struct { extern _X_EXPORT xf86MonPtr ConfiguredMonitor; +/* + * check whether monitor supports Generalized Timing Formula + * + * @param monitor the monitor information structure to check + * @return true if GTF is supported by the monitor + */ +_X_EXPORT bool xf86Monitor_gtf_supported(xf86MonPtr monitor); + #endif /* _EDID_H_ */ diff --git a/hw/xfree86/ddc/interpret_edid.c b/hw/xfree86/ddc/interpret_edid.c index 76d5791b26..9f7d45bee3 100644 --- a/hw/xfree86/ddc/interpret_edid.c +++ b/hw/xfree86/ddc/interpret_edid.c @@ -801,3 +801,11 @@ gtf_supported(xf86MonPtr mon) return FALSE; } + +bool xf86Monitor_gtf_supported(xf86MonPtr monitor) +{ + if (!monitor) + return false; + + return GTF_SUPPORTED(monitor->features.msc); +}