[PATCH 1/2] Document invalid nstops value

Andrea Canciani ranma42 at gmail.com
Wed Jul 27 01:50:42 PDT 2011


Gradients must have at least one stop.

Signed-off-by: Andrea Canciani <ranma42 at gmail.com>
---
 renderproto.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/renderproto.txt b/renderproto.txt
index 9f1f231..4cf5dfc 100644
--- a/renderproto.txt
+++ b/renderproto.txt
@@ -1089,6 +1089,8 @@ CreateLinearGradient
 	The gradient has nstops stop points between 0 and 1, each
 	having a stop color defined in stop_colors.
 
+	If nstops is 0, a Value error is generated.
+
 	The array of stops has to contain values between 0 and 1 (inclusive) and
 	has to be ordered in increasing size or a Value error is generated. If 
 	p1 == p2 a Value error is generated.
@@ -1114,6 +1116,8 @@ CreateRadialGradient
 	The gradient has nstops stop points between 0 and 1, each
 	having a stop color defined in stop_colors.
 
+	If nstops is 0, a Value error is generated.
+
 	The array of stops has to contain values between 0 and 1 (inclusive) and
 	has to be ordered in increasing size or a Value error is generated. The inner
 	circle has to be completely contained inside the outer one or a Value error is 
@@ -1137,6 +1141,8 @@ CreateConicalGradient
 	The gradient has nstops stop points between 0 and 1, each
 	having a stop color defined in stop_colors.
 
+	If nstops is 0, a Value error is generated.
+
 	The array of stops has to contain values between 0 and 1 (inclusive) and
 	has to be ordered in increasing size or a Value error is generated.
 
-- 
1.7.1



More information about the xorg-devel mailing list