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

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Jan 28 19:42:56 PST 2008


 doc/public/tmpl/cairo-win32.sgml |   11 ++++++++++-
 src/cairo-pattern.c              |    4 ++--
 2 files changed, 12 insertions(+), 3 deletions(-)

New commits:
commit 1d17a7f7811b15c72a4091663e01a448f538bc68
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Jan 28 22:42:46 2008 -0500

    [doc] Document the surface type of win32-printing surface being different

diff --git a/doc/public/tmpl/cairo-win32.sgml b/doc/public/tmpl/cairo-win32.sgml
index 97f1d4d..ab1de4e 100644
--- a/doc/public/tmpl/cairo-win32.sgml
+++ b/doc/public/tmpl/cairo-win32.sgml
@@ -7,7 +7,16 @@ Microsoft Windows surface support
 <!-- ##### SECTION Long_Description ##### -->
 <para>
 The Microsoft Windows surface is used to render cairo graphics to
-Microsoft Windows windows and bitmap device contexts.
+Microsoft Windows windows, bitmaps, and printing device contexts.
+</para>
+<para>
+The surface returned by cairo_win32_printing_surface_create() is of surface
+type %CAIRO_SURFACE_TYPE_WIN32_PRINTING and is a multi-page vector surface
+type.
+</para>
+<para>
+The surface returned by the other win32 constructors is of surface type
+%CAIRO_SURFACE_TYPE_WIN32 and is a raster surface type.
 </para>
 
 <!-- ##### SECTION See_Also ##### -->
commit a55f65b5d29060a7f8033ceea211252431d20b77
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Jan 28 22:25:37 2008 -0500

    [doc] Fix typo

diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 68a3f9f..22a1a9e 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -1057,10 +1057,10 @@ cairo_pattern_get_matrix (cairo_pattern_t *pattern, cairo_matrix_t *matrix)
  * use cairo_get_source() to get access to the pattern that cairo
  * creates implicitly. For example:
  *
- * <informatlexample><programlisting>
+ * <informalexample><programlisting>
  * cairo_set_source_surface (cr, image, x, y);
  * cairo_pattern_set_filter (cairo_get_source (cr), %CAIRO_FILTER_NEAREST);
- * </programlisting></informatlexample>
+ * </programlisting></informalexample>
  **/
 void
 cairo_pattern_set_filter (cairo_pattern_t *pattern, cairo_filter_t filter)


More information about the cairo-commit mailing list