[PATCH] Document invalid nStop value

Andrea Canciani ranma42 at gmail.com
Tue Nov 2 12:08:15 PDT 2010


Gradients must have at least one stop.
---
 renderproto.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/renderproto.txt b/renderproto.txt
index 9f1f231..f6a9884 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 nStop 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 nStop 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 nStop 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