diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-03 16:50:03 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 10:05:54 +1000 |
commit | 2d35ea8d957a955e1200ba2b14424bddfe1f4148 (patch) | |
tree | f06b6093ff6289b60fcfe6ab5aa72a8eb4d1c0e7 /dix/window.c | |
parent | 7dd415aa6a3959f15276741db168ba264948ecfe (diff) |
dix: switch to byte-counting functions.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/window.c')
-rw-r--r-- | dix/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/window.c b/dix/window.c index 99b594b63..32e26d986 100644 --- a/dix/window.c +++ b/dix/window.c @@ -1457,8 +1457,8 @@ GetWindowAttributes(WindowPtr pWin, ClientPtr client, xGetWindowAttributesReply wa->backingStore = NotUseful; else wa->backingStore = pWin->backingStore; - wa->length = (sizeof(xGetWindowAttributesReply) - - sizeof(xGenericReply)) >> 2; + wa->length = bytes_to_int32(sizeof(xGetWindowAttributesReply) - + sizeof(xGenericReply)); wa->sequenceNumber = client->sequence; wa->backingBitPlanes = wBackingBitPlanes (pWin); wa->backingPixel = wBackingPixel (pWin); |