From 0fef6d584940645685fddd6f6104de678f5ffeeb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 Apr 2014 02:38:56 +0200 Subject: add (absolute) support for 256 byte EDID:s (deprecated, and I think also rare) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_idcrtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/blueshift_idcrtc.c') 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. */ -- cgit v1.2.3-70-g09d2