randr: wrap long line

Also make use of total_name_len variable for consistency.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Emil Velikov 2015-03-19 12:22:18 +00:00
parent 363cd0e0b4
commit 739e8fac0e

View File

@ -413,8 +413,9 @@ rrGetMultiScreenResources(ClientPtr client, Bool query, ScreenPtr pScreen)
.nbytesNames = total_name_len .nbytesNames = total_name_len
}; };
rep.length = (total_crtcs + total_outputs + total_modes * bytes_to_int32(SIZEOF(xRRModeInfo)) + rep.length = (total_crtcs + total_outputs +
bytes_to_int32(rep.nbytesNames)); total_modes * bytes_to_int32(SIZEOF(xRRModeInfo)) +
bytes_to_int32(total_name_len));
extraLen = rep.length << 2; extraLen = rep.length << 2;
if (extraLen) { if (extraLen) {