diff options
author | Carl Worth <cworth@src.gnome.org> | 2005-04-08 17:21:09 +0000 |
---|---|---|
committer | Carl Worth <cworth@src.gnome.org> | 2005-04-08 17:21:09 +0000 |
commit | 3d9f1d157a14ef3432c06791d63df1cfaa36ab4b (patch) | |
tree | 231f7b99adee874829381226c51c36bf6ff0a41d /gdk/gdkpixbuf-render.c | |
parent | 3962c1166f54cb2c9f83de43cb75f82963ee70ef (diff) | |
download | gtk+-3d9f1d157a14ef3432c06791d63df1cfaa36ab4b.tar.gz |
Simplify matrix manipulation now that cairo exposes the cairo_matrix_t
* gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
now that cairo exposes the cairo_matrix_t structure.
* gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
cairo API change in signedness of data argument.
Diffstat (limited to 'gdk/gdkpixbuf-render.c')
-rw-r--r-- | gdk/gdkpixbuf-render.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdk/gdkpixbuf-render.c b/gdk/gdkpixbuf-render.c index 52c54c5a02..e88e5a6ad5 100644 --- a/gdk/gdkpixbuf-render.c +++ b/gdk/gdkpixbuf-render.c @@ -362,8 +362,9 @@ gdk_pixbuf_set_as_cairo_source (GdkPixbuf *pixbuf, format = CAIRO_FORMAT_ARGB32; cairo_pixels = g_malloc (4 * width * height); - surface = cairo_image_surface_create_for_data ((char *)cairo_pixels, format, - width, height, 4 * width); + surface = cairo_image_surface_create_for_data ((unsigned char *)cairo_pixels, + format, + width, height, 4 * width); cairo_surface_set_user_data (surface, &key, cairo_pixels, (cairo_destroy_func_t)g_free); |