[PATCH 18/18] dbe: switch to byte counting functions

Peter Hutterer peter.hutterer at who-t.net
Wed Jul 8 17:05:16 PDT 2009


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dbe/dbe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dbe/dbe.c b/dbe/dbe.c
index b8f61e7..65aaa15 100644
--- a/dbe/dbe.c
+++ b/dbe/dbe.c
@@ -741,7 +741,7 @@ ProcDbeGetVisualInfo(ClientPtr client)
 
     rep.type           = X_Reply;
     rep.sequenceNumber = client->sequence;
-    rep.length         = length >> 2;
+    rep.length         = num_dwords_for_bytes(length);
     rep.m              = count;
 
     if (client->swapped)
-- 
1.6.3.rc1.2.g0164.dirty



More information about the xorg-devel mailing list