Return BadPicture, not BadPixmap, if alpha-map is invalid.
I believe this is what was intended. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									c677fc611b
								
							
						
					
					
						commit
						580b99bb8a
					
				|  | @ -1115,7 +1115,7 @@ ChangePicture (PicturePtr	pPicture, | ||||||
| 			if (error != Success) | 			if (error != Success) | ||||||
| 			{ | 			{ | ||||||
| 			    client->errorValue = pid; | 			    client->errorValue = pid; | ||||||
| 			    error = (error == BadValue) ? BadPixmap : error; | 			    error = (error == BadValue) ? RenderErrBase + BadPicture : error; | ||||||
| 			    break; | 			    break; | ||||||
| 			} | 			} | ||||||
| 			if (pAlpha->pDrawable == NULL || | 			if (pAlpha->pDrawable == NULL || | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue