Gradients must have at least one stop.

Signed-off-by: Andrea Canciani <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to