summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2015-05-18 19:41:03 +0300
committerAdam Jackson <ajax@redhat.com>2015-05-21 11:19:16 -0400
commitb2df5bc42f64b45e44dbad61f3386bcb5ec1383d (patch)
treeeebcf08bb66a766d5950410169352cfb5d5cc7ad
parentbb890936bcc6053cb7a46cd9225c257ff1be389f (diff)
Fix documentation to explicitly mention premultiplied alpha
Before this patch, it wasn't mentioned in this file at all, which is a monumental oversight. Signed-off-by: Lauri Kasanen <cand@gmx.com>
-rw-r--r--doc/libXrender.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/libXrender.txt b/doc/libXrender.txt
index 27cc75d..753ee98 100644
--- a/doc/libXrender.txt
+++ b/doc/libXrender.txt
@@ -84,7 +84,8 @@ as a separate argument which marks the valid entries.
2.4 Colors
The core protocol XColor type doesn't include an alpha component, so Xrender
-has a separate type.
+has a separate type. Note that XRender expects premultiplied alpha in all
+cases except with the gradient operations.
typedef struct {
unsigned short red;
@@ -526,6 +527,8 @@ conceptually built.
7.1 Composite
XRenderComposite exposes the RenderComposite protocol request directly.
+If a format with alpha is used, make sure it is premultiplied into the
+color channels.
void
XRenderComposite (Display *dpy,