6921521 Upstream fix for source pictures getting random transforms nv_133
authorAlan Coopersmith <Alan.Coopersmith@Sun.COM>
Mon, 01 Feb 2010 14:52:26 -0800
changeset 895 13ffc7c31682
parent 894 04195c766a33
child 896 c1eac68181c0
6921521 Upstream fix for source pictures getting random transforms
open-src/xserver/xorg/image_from_pict.patch
open-src/xserver/xorg/patch-list
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/xserver/xorg/image_from_pict.patch	Mon Feb 01 14:52:26 2010 -0800
@@ -0,0 +1,29 @@
+From a6bd5d2e482a5aa84acb3d4932e2a166d8670ef1 Mon Sep 17 00:00:00 2001
+From: Pierre-Loup A. Griffais <[email protected]>
+Date: Wed, 27 Jan 2010 14:03:03 -0800
+Subject: [PATCH] Fix source pictures getting random transforms after 2d6a8f668342a5190cdf43b5.
+
+*xoff and *yoff were uninitialized for source-only pictures.x
+
+Signed-off-by: Pierre-Loup A. Griffais <[email protected]>
+Reviewed-by: Aaron Plattner <[email protected]>
+Signed-off-by: Keith Packard <[email protected]>
+---
+ fb/fbpict.c |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/fb/fbpict.c b/fb/fbpict.c
+index 251754b..dddfce8 100644
+--- a/fb/fbpict.c
++++ b/fb/fbpict.c
+@@ -452,6 +452,7 @@ image_from_pict (PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
+ 	    else if (sp->type == SourcePictTypeConical)
+ 		image = create_conical_gradient_image (gradient);
+ 	}
++	*xoff = *yoff = 0;
+     }
+     
+     if (image)
+-- 
+1.5.6.5
+
--- a/open-src/xserver/xorg/patch-list	Mon Feb 01 13:56:14 2010 -0800
+++ b/open-src/xserver/xorg/patch-list	Mon Feb 01 14:52:26 2010 -0800
@@ -1,6 +1,7 @@
 6915712.patch,-p1
 CreateNewResourceType.patch,-p1
 resource-names.patch,-p1
+image_from_pict.patch,-p1
 sun-paths.patch
 sun-extramodes.patch
 sun-manpage.patch