diff options
author | Michael Natterer <mitch@gimp.org> | 2004-06-21 16:13:55 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2004-06-21 16:13:55 +0000 |
commit | 1408c75941c65f3d8ea617884f7894ea8e1240aa (patch) | |
tree | b54ae8e9752c360130457c7cee4cdafb6d49e64f /gdk/x11/gdkdrawable-x11.h | |
parent | fbe92667af3a611dc40a8a45a8d9fbb020fd186d (diff) | |
download | gtk+-1408c75941c65f3d8ea617884f7894ea8e1240aa.tar.gz |
Merge from stable:
2004-06-21 Michael Natterer <mitch@gimp.org>
Merge from stable:
* gdk/x11/gdkdrawable-x11.[ch]: made convert_format() utility
function public as _gdk_x11_convert_to_format().
* gdk/x11/gdkcursor-x11.c (create_cursor_image): premultiply
the pixels from the GdkPixbuf when putting them in the
Xcursor image. Fixes bug #144350.
Diffstat (limited to 'gdk/x11/gdkdrawable-x11.h')
-rw-r--r-- | gdk/x11/gdkdrawable-x11.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdk/x11/gdkdrawable-x11.h b/gdk/x11/gdkdrawable-x11.h index ea99938b3c..bc3f75dbc0 100644 --- a/gdk/x11/gdkdrawable-x11.h +++ b/gdk/x11/gdkdrawable-x11.h @@ -41,6 +41,14 @@ extern "C" { /* Drawable implementation for X11 */ +typedef enum +{ + GDK_X11_FORMAT_NONE, + GDK_X11_FORMAT_EXACT_MASK, + GDK_X11_FORMAT_ARGB_MASK, + GDK_X11_FORMAT_ARGB +} GdkX11FormatType; + typedef struct _GdkDrawableImplX11 GdkDrawableImplX11; typedef struct _GdkDrawableImplX11Class GdkDrawableImplX11Class; @@ -73,6 +81,15 @@ struct _GdkDrawableImplX11Class GType _gdk_drawable_impl_x11_get_type (void); +void _gdk_x11_convert_to_format (guchar *src_buf, + gint src_rowstride, + guchar *dest_buf, + gint dest_rowstride, + GdkX11FormatType dest_format, + GdkByteOrder dest_byteorder, + gint width, + gint height); + #ifdef __cplusplus } #endif /* __cplusplus */ |