summaryrefslogtreecommitdiff
path: root/randr/rrscreen.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-03-19 12:22:18 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-03-24 17:21:23 +0000
commit739e8fac0e9d8d4c1653e53a8f3ce2d38b3de320 (patch)
tree6a082ae632992a6d7ec97028cf98a8efae7ce36a /randr/rrscreen.c
parent363cd0e0b499ea8c32b2aa5cf7ea0f0a56b4c3ef (diff)
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>
Diffstat (limited to 'randr/rrscreen.c')
-rw-r--r--randr/rrscreen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/randr/rrscreen.c b/randr/rrscreen.c
index c2a7798e1..d0ca91e0e 100644
--- a/randr/rrscreen.c
+++ b/randr/rrscreen.c
@@ -413,8 +413,9 @@ rrGetMultiScreenResources(ClientPtr client, Bool query, ScreenPtr pScreen)
.nbytesNames = total_name_len
};
- rep.length = (total_crtcs + total_outputs + total_modes * bytes_to_int32(SIZEOF(xRRModeInfo)) +
- bytes_to_int32(rep.nbytesNames));
+ rep.length = (total_crtcs + total_outputs +
+ total_modes * bytes_to_int32(SIZEOF(xRRModeInfo)) +
+ bytes_to_int32(total_name_len));
extraLen = rep.length << 2;
if (extraLen) {