aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_x_randr_get_crtc_information.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-06 16:52:22 +0100
committerMattias Andrée <maandree@kth.se>2021-03-06 16:52:22 +0100
commitadb5b26bd94e0b90966307274f8fd6cada0fdb92 (patch)
tree423d934f23abd225213c4d1228de5249f0b2e43d /libgamma_x_randr_get_crtc_information.c
parentUpdate todo (diff)
downloadlibgamma-adb5b26bd94e0b90966307274f8fd6cada0fdb92.tar.gz
libgamma-adb5b26bd94e0b90966307274f8fd6cada0fdb92.tar.bz2
libgamma-adb5b26bd94e0b90966307274f8fd6cada0fdb92.tar.xz
Add chroma and white point support from EDID, add version support to methods caps and CRTC info, support EDID 1.4, and support EDID with extensions
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libgamma_x_randr_get_crtc_information.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libgamma_x_randr_get_crtc_information.c b/libgamma_x_randr_get_crtc_information.c
index 29abd8b..c457bd6 100644
--- a/libgamma_x_randr_get_crtc_information.c
+++ b/libgamma_x_randr_get_crtc_information.c
@@ -95,8 +95,8 @@ static int
get_connector_type(libgamma_crtc_information_t *restrict this)
{
/* Since we require the name of the output of get the type of the connected,
- copy any reported error on the output's name to the connector's type,
- and report failure if there was an error */
+ * copy any reported error on the output's name to the connector's type,
+ * and report failure if there was an error */
if ((this->connector_type_error = this->connector_name_error))
return -1;
@@ -198,8 +198,10 @@ get_edid(libgamma_crtc_information_t *restrict out, libgamma_crtc_state_t *restr
/* Acquire a list of all properties of the output */
prop_cookie = xcb_randr_list_output_properties(connection, output);
prop_reply = xcb_randr_list_output_properties_reply(connection, prop_cookie, &error);
- if (error)
- return out->edid_error = libgamma_x_randr_internal_translate_error(error->error_code, LIBGAMMA_LIST_PROPERTIES_FAILED, 1);
+ if (error) {
+ return out->edid_error = libgamma_x_randr_internal_translate_error(error->error_code,
+ LIBGAMMA_LIST_PROPERTIES_FAILED, 1);
+ }
/* Extract the properties form the data structure that holds them, */
atoms = xcb_randr_list_output_properties_atoms(prop_reply);
@@ -289,7 +291,7 @@ get_edid(libgamma_crtc_information_t *restrict out, libgamma_crtc_state_t *restr
*/
int
libgamma_x_randr_get_crtc_information(libgamma_crtc_information_t *restrict this,
- libgamma_crtc_state_t *restrict crtc, int32_t fields)
+ libgamma_crtc_state_t *restrict crtc, unsigned long long fields)
{
#define _E(FIELD) ((fields & FIELD) ? LIBGAMMA_CRTC_INFO_NOT_SUPPORTED : 0)