diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/blueshift_drm_c.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blueshift_drm_c.c b/src/blueshift_drm_c.c index 1f010c0..987dd58 100644 --- a/src/blueshift_drm_c.c +++ b/src/blueshift_drm_c.c @@ -403,7 +403,9 @@ const char* blueshift_drm_get_connector_type_name(int connection, int connector_ * * @param connection The identifier for the connection to the card * @param connector_index The index of the connector - * @param edid Storage location for the EDID, it should be 256 bytes, 512 bytes + zero termination if hex + * @param edid Storage location for the EDID, it should be 128 bytes, + * or 256 bytes if you are counting on the depricated EDID 2.0, + * If hexadecimal, twice that + zero termiation. * @param size The size allocated to `edid` excluding your zero termination * @param hexadecimal Whether to convert to hexadecimal representation, this is preferable * @return The length of the found value, 0 if none, as if hex is false @@ -442,7 +444,7 @@ long blueshift_drm_get_edid(int connection, int connector_index, char* edid, lon memcpy(edid, blob->data, (size_t)len * sizeof(char)); } drmModeFreePropertyBlob(blob); - prop_i = connector->count_props; /* stop to for loop */ + prop_i = connector->count_props; /* stop the for-loop */ } drmModeFreeProperty(prop); } |