aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2019-06-04 16:15:35 +0900
committerYAMAMOTO Mitsuharu2019-06-04 16:15:35 +0900
commitf6e928105be1f2cb429502bfd057af8044e81deb (patch)
treedf746021035ca681ea9a7837a2673c3a0213ad93 /src
parentf81b812d75d33a7d24c8c0f46455bde9a7ee6840 (diff)
downloademacs-f6e928105be1f2cb429502bfd057af8044e81deb.tar.gz
emacs-f6e928105be1f2cb429502bfd057af8044e81deb.zip
* src/image.c (cr_create_cr_surface_from_image): Add const to variable `key'.
Diffstat (limited to 'src')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index a2e4aa98bf9..9b0080130bc 100644
--- a/src/image.c
+++ b/src/image.c
@@ -239,7 +239,7 @@ cr_create_cr_surface_from_image (struct frame *f, struct image *img)
239 : CAIRO_FORMAT_RGB24), 239 : CAIRO_FORMAT_RGB24),
240 pimg->width, pimg->height, 240 pimg->width, pimg->height,
241 pimg->bytes_per_line); 241 pimg->bytes_per_line);
242 static cairo_user_data_key_t key; 242 static const cairo_user_data_key_t key;
243 cairo_surface_set_user_data (surface, &key, pimg->data, xfree); 243 cairo_surface_set_user_data (surface, &key, pimg->data, xfree);
244 unblock_input (); 244 unblock_input ();
245 pimg->data = NULL; 245 pimg->data = NULL;