[PATCH 4/6] Return BadPicture, not BadPixmap, if alpha-map is invalid.

Jamey Sharp jamey at minilop.net
Sun Apr 25 03:35:36 PDT 2010


I believe this is what was intended.

Signed-off-by: Jamey Sharp <jamey at minilop.net>
---
 render/picture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/render/picture.c b/render/picture.c
index 18bfea2..48693b8 100644
--- a/render/picture.c
+++ b/render/picture.c
@@ -1115,7 +1115,7 @@ ChangePicture (PicturePtr	pPicture,
 			if (error != Success)
 			{
 			    client->errorValue = pid;
-			    error = (error == BadValue) ? BadPixmap : error;
+			    error = (error == BadValue) ? RenderErrBase + BadPicture : error;
 			    break;
 			}
 			if (pAlpha->pDrawable == NULL ||
-- 
1.7.0



More information about the xorg-devel mailing list