[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libxrender: Changes to 'upstream-unstable'



 configure.ac  |    2 +-
 src/Picture.c |   12 +++++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

New commits:
commit 3fcca95b2628167be4c908a9a315f070eb195660
Author: David Reveman <davidr@novell.com>
Date:   Mon Aug 20 14:40:44 2007 -0400

    Bump to 0.9.3

diff --git a/configure.ac b/configure.ac
index a6bbb2a..8e1e6d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ dnl try to keep these the same.  Note that the library has an extra
 dnl digit in the version number to track changes which don't affect the
 dnl protocol, so Xrender version l.n.m corresponds to protocol version l.n
 dnl
-AC_INIT(libXrender, 0.9.2, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXrender)
+AC_INIT(libXrender, 0.9.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXrender)
 AM_INIT_AUTOMAKE([dist-bzip2])
 AM_MAINTAINER_MODE
 

commit 5b38b2d9b981d425587a4eb440acb2f0d6b0db13
Author: David Reveman <davidr@novell.com>
Date:   Mon Aug 20 14:38:33 2007 -0400

    Properly set length field in gradient requests (bug 9526).

diff --git a/src/Picture.c b/src/Picture.c
index 0b18f5c..509a835 100644
--- a/src/Picture.c
+++ b/src/Picture.c
@@ -277,6 +277,7 @@ Picture XRenderCreateLinearGradient(Display *dpy,
     XRenderExtDisplayInfo	    *info = XRenderFindDisplay (dpy);
     Picture		    pid;
     xRenderCreateLinearGradientReq *req;
+    long			   len;
 
     RenderCheckExtension (dpy, info, 0);
     LockDisplay(dpy);
@@ -291,9 +292,10 @@ Picture XRenderCreateLinearGradient(Display *dpy,
     req->p2.y = gradient->p2.y;
 
     req->nStops = nStops;
+    len = (long) nStops * 3;
+    SetReqLen (req, len, 6);
     DataInt32(dpy, stops, nStops * 4);
     Data16(dpy, colors, nStops * 8);
-    req->length += nStops*3;
 
     UnlockDisplay(dpy);
     SyncHandle();
@@ -309,6 +311,7 @@ Picture XRenderCreateRadialGradient(Display *dpy,
     XRenderExtDisplayInfo	    *info = XRenderFindDisplay (dpy);
     Picture		    pid;
     xRenderCreateRadialGradientReq *req;
+    long			   len;
 
     RenderCheckExtension (dpy, info, 0);
     LockDisplay(dpy);
@@ -325,9 +328,10 @@ Picture XRenderCreateRadialGradient(Display *dpy,
     req->outer_radius = gradient->outer.radius;
 
     req->nStops = nStops;
+    len = (long) nStops * 3;
+    SetReqLen (req, len, 6);
     DataInt32(dpy, stops, nStops * 4);
     Data16(dpy, colors, nStops * 8);
-    req->length += nStops*3;
 
     UnlockDisplay(dpy);
     SyncHandle();
@@ -343,6 +347,7 @@ Picture XRenderCreateConicalGradient(Display *dpy,
     XRenderExtDisplayInfo	    *info = XRenderFindDisplay (dpy);
     Picture		    pid;
     xRenderCreateConicalGradientReq *req;
+    long			    len;
 
     RenderCheckExtension (dpy, info, 0);
     LockDisplay(dpy);
@@ -356,9 +361,10 @@ Picture XRenderCreateConicalGradient(Display *dpy,
     req->angle = gradient->angle;
 
     req->nStops = nStops;
+    len = (long) nStops * 3;
+    SetReqLen (req, len, 6);
     DataInt32(dpy, stops, nStops * 4);
     Data16(dpy, colors, nStops * 8);
-    req->length += nStops*3;
 
     UnlockDisplay(dpy);
     SyncHandle();



Reply to: