diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-06-19 09:01:29 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2011-06-19 09:01:29 +0000 |
| commit | f6dba310bc22dc65845e0cd0743594545e356a59 (patch) | |
| tree | 13095cd94d89c5ea9d1a2bc47d019aefa5d2ffe9 /src/display/cairo-utils.h | |
| parent | Fixed font problem on win32. (diff) | |
| download | inkscape-f6dba310bc22dc65845e0cd0743594545e356a59.tar.gz inkscape-f6dba310bc22dc65845e0cd0743594545e356a59.zip | |
Fix rendering of control points
(bzr r9508.1.88)
Diffstat (limited to 'src/display/cairo-utils.h')
| -rw-r--r-- | src/display/cairo-utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/cairo-utils.h b/src/display/cairo-utils.h index 1ad3c0b46..0c2ac2dd6 100644 --- a/src/display/cairo-utils.h +++ b/src/display/cairo-utils.h @@ -107,6 +107,12 @@ void convert_pixbuf_normal_to_argb32(GdkPixbuf *); void convert_pixbuf_argb32_to_normal(GdkPixbuf *); cairo_surface_t *ink_cairo_surface_create_for_argb32_pixbuf(GdkPixbuf *pb); +G_GNUC_CONST guint32 argb32_from_pixbuf(guint32 in); +G_GNUC_CONST guint32 pixbuf_from_argb32(guint32 in); +/** Convert a pixel in 0xRRGGBBAA format to Cairo ARGB32 format. */ +G_GNUC_CONST guint32 argb32_from_rgba(guint32 in); + + G_GNUC_CONST inline guint32 premul_alpha(guint32 color, guint32 alpha) { |
