aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server')
-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);
}