diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-12 02:38:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-12 02:41:08 +0200 |
commit | 0fef6d584940645685fddd6f6104de678f5ffeeb (patch) | |
tree | 614fcb829fc53611c16aa8db5ce7f1559f26c3ba | |
parent | typo (diff) | |
download | blueshift-0fef6d584940645685fddd6f6104de678f5ffeeb.tar.gz blueshift-0fef6d584940645685fddd6f6104de678f5ffeeb.tar.bz2 blueshift-0fef6d584940645685fddd6f6104de678f5ffeeb.tar.xz |
add (absolute) support for 256 byte EDID:s (deprecated, and I think also rare)
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/blueshift_idcrtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blueshift_idcrtc.c b/src/blueshift_idcrtc.c index 0589aca..13cd5df 100644 --- a/src/blueshift_idcrtc.c +++ b/src/blueshift_idcrtc.c @@ -316,9 +316,9 @@ int main(int argc, char** argv) unsigned char* atom_data_; char* atom_data; - /* Acquire the property's value, we know(*) that it is 128 byte long. */ + /* Acquire the property's value, we know that it is either 128 or 256 byte long. */ atom_cookie = xcb_randr_get_output_property(connection, outputs[output_i], *atoms, - XCB_GET_PROPERTY_TYPE_ANY, 0, 128, 0, 0); + XCB_GET_PROPERTY_TYPE_ANY, 0, 256, 0, 0); atom_reply = xcb_randr_get_output_property_reply(connection, atom_cookie, &error); @@ -347,7 +347,7 @@ int main(int argc, char** argv) /* Extract the property's value, */ atom_data_ = xcb_randr_get_output_property_data(atom_reply); - /* and its actual length, it is still probably 128 byte, it should be that. */ + /* and its actual length. */ length = xcb_randr_get_output_property_data_length(atom_reply); /* Convert to hexadecimal representation. */ |