aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-11 11:59:55 +0000
committermarha <marha@users.sourceforge.net>2011-02-11 11:59:55 +0000
commit886f645893f27515eebe3816cc7e2840cc2707e0 (patch)
tree1b48e4e9d41ef5f80fb0c6ab24835f17290db87c
parent555fd3292d2b49bc441967b5153ecb2db4318694 (diff)
downloadvcxsrv-886f645893f27515eebe3816cc7e2840cc2707e0.tar.gz
vcxsrv-886f645893f27515eebe3816cc7e2840cc2707e0.tar.bz2
vcxsrv-886f645893f27515eebe3816cc7e2840cc2707e0.zip
Solved problem of wrongly generated error message.
-rw-r--r--xorg-server/dix/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg-server/dix/gc.c b/xorg-server/dix/gc.c
index 8315c9c06..92d24dde4 100644
--- a/xorg-server/dix/gc.c
+++ b/xorg-server/dix/gc.c
@@ -327,7 +327,7 @@ ChangeGC(ClientPtr client, GC *pGC, BITS32 mask, ChangeGCValPtr pUnion)
{
long Val;
NEXTVAL(long, Val);
- if (abs(Val)>32767)
+ if (abs(Val)>65535)
ErrorF("Value received for GCClipXOrigin is too large %x\n",Val);
pGC->clipOrg.x=(INT16)(Val&0xffff);
}
@@ -340,7 +340,7 @@ ChangeGC(ClientPtr client, GC *pGC, BITS32 mask, ChangeGCValPtr pUnion)
{
long Val;
NEXTVAL(long, Val);
- if (abs(Val)>32767)
+ if (abs(Val)>65535)
ErrorF("Value received for GCClipYOrigin is too large %x\n",Val);
pGC->clipOrg.y=(INT16)(Val&0xffff);
}