[cairo-commit] 2 commits - ROADMAP src/cairo-pattern.c

Carl Worth cworth at kemper.freedesktop.org
Fri May 18 13:22:48 PDT 2007


 ROADMAP             |    8 +++++---
 src/cairo-pattern.c |   13 +++++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)

New commits:
diff-tree 3cb67435f805a8ea39f38194379f216ea4a69ed6 (from 1cf4ed989473e2468ea2d64bb7759084c9f6a1e4)
Author: Carl Worth <cworth at cworth.org>
Date:   Fri May 18 13:22:36 2007 -0700

    Document behavior of color stops added with identical offsets.

diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 867898b..ad4169e 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -834,6 +834,13 @@ _cairo_pattern_add_color_stop (cairo_gra
  *
  * The color is specified in the same way as in cairo_set_source_rgb().
  *
+ * If two (or more) stops are specified with identical offset values,
+ * they will be sorted according to the order in which the stops are
+ * added, (stops added earlier will compare less than stops added
+ * later). This can be useful for reliably making sharp color
+ * transitions instead of the typical blend.
+ *
+ *
  * Note: If the pattern is not a gradient pattern, (eg. a linear or
  * radial pattern), then the pattern will be put into an error status
  * with a status of %CAIRO_STATUS_PATTERN_TYPE_MISMATCH.
@@ -881,6 +888,12 @@ cairo_pattern_add_color_stop_rgb (cairo_
  *
  * The color is specified in the same way as in cairo_set_source_rgba().
  *
+ * If two (or more) stops are specified with identical offset values,
+ * they will be sorted according to the order in which the stops are
+ * added, (stops added earlier will compare less than stops added
+ * later). This can be useful for reliably making sharp color
+ * transitions instead of the typical blend.
+ *
  * Note: If the pattern is not a gradient pattern, (eg. a linear or
  * radial pattern), then the pattern will be put into an error status
  * with a status of %CAIRO_STATUS_PATTERN_TYPE_MISMATCH.
diff-tree 1cf4ed989473e2468ea2d64bb7759084c9f6a1e4 (from 7260ee23ecb08e72a938a194e70dfb5e7a48c599)
Author: Carl Worth <cworth at cworth.org>
Date:   Fri May 18 13:16:23 2007 -0700

    ROADMAP: Add bugs for 565 and 655 Visuals to the list

diff --git a/ROADMAP b/ROADMAP
index cdf8654..ecf218a 100644
--- a/ROADMAP
+++ b/ROADMAP
@@ -32,9 +32,11 @@ cairo 1.4.x (not scheduled, may become p
    (very frequently duplicated bug reports and a regression since
    cairo 1.0.x apparently)
 
-	7735 cairo doesn't support 8-bit truecolor visuals
-	4945 Cairo doesn't support 8-bit pseudocolor visuals
-	9993 Cairo fails with 555 X server visual
+	 7735 cairo doesn't support 8-bit truecolor visuals
+	 4945 Cairo doesn't support 8-bit pseudocolor visuals
+	 9719 Cairo doesn't support 655 xlib format
+	 9993 Cairo fails with 555 X server visual
+	10461 Cairo doesn't support 565 xlib visual
 
  ✓ Discard trapezoids that lie outside the clip region (cworth)
 


More information about the cairo-commit mailing list