aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-method.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-01 06:03:15 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-01 06:03:15 +0200
commit6ce17db88175b341b7729f12b9f1197781312434 (patch)
tree74e90f91793e74fa89231403084e362cb83b7fef /src/lib/libgamma-method.h
parentm + m doc (diff)
downloadlibgamma-6ce17db88175b341b7729f12b9f1197781312434.tar.gz
libgamma-6ce17db88175b341b7729f12b9f1197781312434.tar.bz2
libgamma-6ce17db88175b341b7729f12b9f1197781312434.tar.xz
Use macros for CRTC information fields
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/lib/libgamma-method.h')
-rw-r--r--src/lib/libgamma-method.h30
1 files changed, 24 insertions, 6 deletions
diff --git a/src/lib/libgamma-method.h b/src/lib/libgamma-method.h
index df95f87..9eedc03 100644
--- a/src/lib/libgamma-method.h
+++ b/src/lib/libgamma-method.h
@@ -543,20 +543,28 @@ typedef enum libgamma_subpixel_order
#define LIBGAMMA_CRTC_INFO_COUNT 13
/**
+ * Macro for both `libgamma_crtc_information_t` fields
+ * that can specify the size of the monitor's viewport
+ * as specified in the monitor's Extended Display
+ * Information Data.
+ */
+#define LIBGAMMA_CRTC_INFO_MACRO_EDID_VIEWPORT ( LIBGAMMA_CRTC_INFO_WIDTH_MM_EDID \
+ | LIBGAMMA_CRTC_INFO_HEIGHT_MM_EDID )
+
+/**
* Macro for all `libgamma_crtc_information_t` fields
* that can be filled if the adjustment method have
* support for reading the monitors' Extended Display
* Information Data.
*/
-#define LIBGAMMA_CRTC_INFO_MACRO_EDID ( LIBGAMMA_CRTC_INFO_EDID \
- | LIBGAMMA_CRTC_INFO_WIDTH_MM_EDID \
- | LIBGAMMA_CRTC_INFO_HEIGHT_MM_EDID \
- | LIBGAMMA_CRTC_INFO_GAMMA )
+#define LIBGAMMA_CRTC_INFO_MACRO_EDID ( LIBGAMMA_CRTC_INFO_EDID \
+ | LIBGAMMA_CRTC_INFO_MACRO_EDID_VIEWPORT \
+ | LIBGAMMA_CRTC_INFO_GAMMA )
/**
* Macro for both `libgamma_crtc_information_t` fields
- * that can specify the size of the monitors viewport
- * is provided by the adjustment method without this
+ * that can specify the size of the monitor's viewport
+ * as provided by the adjustment method without this
* library having to parse the monitor's Extended Display
* Information Data.
*/
@@ -577,6 +585,16 @@ typedef enum libgamma_subpixel_order
#define LIBGAMMA_CRTC_INFO_MACRO_CONNECTOR ( LIBGAMMA_CRTC_INFO_CONNECTOR_NAME \
| LIBGAMMA_CRTC_INFO_CONNECTOR_TYPE )
+/**
+ * Macro for the `libgamma_crtc_information_t` fields
+ * that required there is a monitor attached to the connector,
+ * and that status itself.
+ */
+#define LIBGAMMA_CRTC_INFO_MACRO_ACTIVE ( LIBGAMMA_CRTC_INFO_MACRO_EDID \
+ | LIBGAMMA_CRTC_INFO_MACRO_VIEWPORT \
+ | LIBGAMMA_CRTC_INFO_SUBPIXEL_ORDER \
+ | LIBGAMMA_CRTC_INFO_ACTIVE )
+
/**