diff options
Diffstat (limited to 'xc/programs/Xserver/Xext/dpms.c')
-rw-r--r-- | xc/programs/Xserver/Xext/dpms.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xc/programs/Xserver/Xext/dpms.c b/xc/programs/Xserver/Xext/dpms.c index 3f9d2b370..17f5f59f7 100644 --- a/xc/programs/Xserver/Xext/dpms.c +++ b/xc/programs/Xserver/Xext/dpms.c @@ -32,7 +32,7 @@ Equipment Corporation. * @(#)RCSfile: dpms.c,v Revision: 1.1.4.5 (DEC) Date: 1996/03/04 15:27:00 */ -/* $XFree86: xc/programs/Xserver/Xext/dpms.c,v 3.6 1999/03/07 11:40:25 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/Xext/dpms.c,v 3.7 2000/08/11 21:12:43 dawes Exp $ */ #include "X.h" #include "Xproto.h" @@ -115,6 +115,7 @@ ProcDPMSCapable(register ClientPtr client) { REQUEST(xDPMSCapableReq); xDPMSCapableReply rep; + register int n; REQUEST_SIZE_MATCH(xDPMSCapableReq); @@ -123,6 +124,9 @@ ProcDPMSCapable(register ClientPtr client) rep.sequenceNumber = client->sequence; rep.capable = DPMSCapableFlag; + if (client->swapped) { + swaps(&rep.sequenceNumber, n); + } WriteToClient(client, sizeof(xDPMSCapableReply), (char *)&rep); return(client->noClientException); } |