From 7c1454940fd2ec9272fec9d3c3076846381a31fe Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 Apr 2014 02:00:08 +0200 Subject: m doc 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/blueshift_idcrtc.c b/src/blueshift_idcrtc.c index 08379fe..794829e 100644 --- a/src/blueshift_idcrtc.c +++ b/src/blueshift_idcrtc.c @@ -316,12 +316,18 @@ 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 128 byte long. */ atom_cookie = xcb_randr_get_output_property(connection, outputs[output_i], *atoms, XCB_GET_PROPERTY_TYPE_ANY, 0, 128, 0, 0); atom_reply = xcb_randr_get_output_property_reply(connection, atom_cookie, &error); + /* (*) EDID version 1.0 through 1.4 define it as 128 bytes long, + but version 2.0 define it as 256 bytes long. However, + version 2.0 is rare(?) and has been deprecated and replaced + byte version 1.3 (I guess that is with a new version epoch, + but I do not know.) */ + if (error) { /* On error print an error message, */ -- cgit v1.2.3-70-g09d2