diff options
author | John Ralls <jralls@ceridwen.us> | 2022-04-17 10:47:10 -0700 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2022-04-24 13:08:48 -0700 |
commit | 0048f0f8035549f024a6a8571afba84742cb3dac (patch) | |
tree | a849101a70d29f8ff8d125b56b01149cebe338b4 /src/cairo-quartz-surface.c | |
parent | d9a5aa9d97d302c83aab985aff8b112668a82ac2 (diff) | |
download | cairo-0048f0f8035549f024a6a8571afba84742cb3dac.tar.gz |
[quartz] Fix some compiler warnings.
Diffstat (limited to 'src/cairo-quartz-surface.c')
-rw-r--r-- | src/cairo-quartz-surface.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index 5681918c4..07484efb6 100644 --- a/src/cairo-quartz-surface.c +++ b/src/cairo-quartz-surface.c @@ -1472,7 +1472,7 @@ _cairo_quartz_surface_map_to_image (void *abstract_surface, cairo_surface_t *return_surface = NULL; unsigned int stride, bitinfo, bpp, color_comps; CGColorSpaceRef colorspace; - void *imageData; + unsigned char *imageData; cairo_format_t format; if (IS_EMPTY (surface)) @@ -2632,7 +2632,7 @@ quartz_image_to_png (CGImageRef image, const char *dest) memset (pathbuf, 0, sizeof (pathbuf)); dest = dest ? dest : image_name; - snprintf (pathbuf, sizeof (pathbuf), "%s/Desktop/%s%d.png",getenv ("HOME"), dest, sctr++, ext); + snprintf (pathbuf, sizeof (pathbuf), "%s/Desktop/%s%d.png",getenv ("HOME"), dest, sctr++); path = CFStringCreateWithCString (NULL, pathbuf, kCFStringEncodingUTF8); url = CFURLCreateWithFileSystemPath (NULL, path, kCFURLPOSIXPathStyle, FALSE); image_dest = CGImageDestinationCreateWithURL (url, png_utti, 1, NULL); @@ -2647,7 +2647,6 @@ quartz_image_to_png (CGImageRef image, const char *dest) void quartz_surface_to_png (cairo_quartz_surface_t *nq, const char *dest) { - static int sctr = 0; CGImageRef image; if (nq->base.type != CAIRO_SURFACE_TYPE_QUARTZ) { |