[cairo-commit] src/cairo.h
Carl Worth
cworth at kemper.freedesktop.org
Mon Aug 7 23:14:08 PDT 2006
src/cairo.h | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
New commits:
diff-tree 789785cd357de14af23a4d2ae8ca49c4838426b9 (from fdc805a52949bf3b040bfef57d170025010816c6)
Author: Carl Worth <cworth at cworth.org>
Date: Mon Aug 7 11:58:35 2006 -0700
Document CAIRO_FORMAT_RGB16_565 as deprecated.
diff --git a/src/cairo.h b/src/cairo.h
index 7ec249f..bac27fd 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -1358,9 +1358,16 @@ cairo_surface_set_fallback_resolution (c
* endianess of the platform. On a big-endian machine, the
* first pixel is in the uppermost bit, on a little-endian
* machine the first pixel is in the least-significant bit.
- * @CAIRO_FORMAT_RGB16_565: each pixel is a 16-bit quantity,
- * with red in the upper 5 bits, then green in the next 6,
- * then blue in the lowest 5 bits. (Since 1.2)
+ * @CAIRO_FORMAT_RGB16_565: This format value is deprecated. It has
+ * never been properly implemented in cairo and should not be used
+ * by applications. For example, any attempt to create an image
+ * surface with a format of CAIRO_FORMAT_RGB16_565 will fail. This
+ * format value was added as part of fixing cairo's xlib backend to
+ * work with X servers advertising a 16-bit, 565 visual. But as it
+ * turned out, adding this format to #cairo_format_t was not
+ * necessary, and was a mistake, (cairo's xlib backend can work fine
+ * with 16-bit visuals in the same way it works with BGR visuals
+ * without any BGR formats in #cairo_format_t). (Since 1.2)
*
* #cairo_format_t is used to identify the memory format of
* image data.
More information about the cairo-commit
mailing list