diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-06 12:20:21 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 10:14:01 +1000 |
commit | 7b9e84e320a6f6449fe7bc58a8d6a094ae37b86c (patch) | |
tree | 570039663c3361ee3b885ace9d42084d94010fe6 /Xext/panoramiX.c | |
parent | aa19d355125a10b1a385c8f134d68e79d3d609c7 (diff) |
Xext: switch to byte counting functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext/panoramiX.c')
-rw-r--r-- | Xext/panoramiX.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index 4ab6f6bdd..c5fb70061 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -669,7 +669,7 @@ Bool PanoramiXCreateConnectionBlock(void) length += (depth->nVisuals * sizeof(xVisualType)); } - connSetupPrefix.length = length >> 2; + connSetupPrefix.length = bytes_to_int32(length); for (i = 0; i < PanoramiXNumDepths; i++) xfree(PanoramiXDepths[i].vids); @@ -1053,7 +1053,7 @@ ProcXineramaQueryScreens(ClientPtr client) rep.type = X_Reply; rep.sequenceNumber = client->sequence; rep.number = (noPanoramiXExtension) ? 0 : PanoramiXNumScreens; - rep.length = rep.number * sz_XineramaScreenInfo >> 2; + rep.length = bytes_to_int32(rep.number * sz_XineramaScreenInfo); if (client->swapped) { int n; swaps (&rep.sequenceNumber, n); |