aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorJoakim Verona2013-08-14 18:51:46 +0200
committerJoakim Verona2013-08-14 18:51:46 +0200
commit1cd3338c8c8074c0c93c997e4430d441fdec4113 (patch)
treed18dfd08c22a10c375c89f9b66698d10d14cdce6 /src/image.c
parentef7cb56e57e53af78783a85df167f943bd5fe039 (diff)
parent5b71542de3ef7f08b7c30e93340502d7cc120910 (diff)
downloademacs-1cd3338c8c8074c0c93c997e4430d441fdec4113.tar.gz
emacs-1cd3338c8c8074c0c93c997e4430d441fdec4113.zip
merge from trunk
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c
index b2d6726c1a4..f71ba211d44 100644
--- a/src/image.c
+++ b/src/image.c
@@ -302,11 +302,10 @@ x_create_bitmap_from_file (struct frame *f, Lisp_Object file)
302 id = x_allocate_bitmap_record (f); 302 id = x_allocate_bitmap_record (f);
303 dpyinfo->bitmaps[id - 1].img = bitmap; 303 dpyinfo->bitmaps[id - 1].img = bitmap;
304 dpyinfo->bitmaps[id - 1].refcount = 1; 304 dpyinfo->bitmaps[id - 1].refcount = 1;
305 dpyinfo->bitmaps[id - 1].file = xmalloc (SBYTES (file) + 1); 305 dpyinfo->bitmaps[id - 1].file = xlispstrdup (file);
306 dpyinfo->bitmaps[id - 1].depth = 1; 306 dpyinfo->bitmaps[id - 1].depth = 1;
307 dpyinfo->bitmaps[id - 1].height = ns_image_width (bitmap); 307 dpyinfo->bitmaps[id - 1].height = ns_image_width (bitmap);
308 dpyinfo->bitmaps[id - 1].width = ns_image_height (bitmap); 308 dpyinfo->bitmaps[id - 1].width = ns_image_height (bitmap);
309 strcpy (dpyinfo->bitmaps[id - 1].file, SSDATA (file));
310 return id; 309 return id;
311#endif 310#endif
312 311
@@ -345,11 +344,10 @@ x_create_bitmap_from_file (struct frame *f, Lisp_Object file)
345 dpyinfo->bitmaps[id - 1].pixmap = bitmap; 344 dpyinfo->bitmaps[id - 1].pixmap = bitmap;
346 dpyinfo->bitmaps[id - 1].have_mask = 0; 345 dpyinfo->bitmaps[id - 1].have_mask = 0;
347 dpyinfo->bitmaps[id - 1].refcount = 1; 346 dpyinfo->bitmaps[id - 1].refcount = 1;
348 dpyinfo->bitmaps[id - 1].file = xmalloc (SBYTES (file) + 1); 347 dpyinfo->bitmaps[id - 1].file = xlispstrdup (file);
349 dpyinfo->bitmaps[id - 1].depth = 1; 348 dpyinfo->bitmaps[id - 1].depth = 1;
350 dpyinfo->bitmaps[id - 1].height = height; 349 dpyinfo->bitmaps[id - 1].height = height;
351 dpyinfo->bitmaps[id - 1].width = width; 350 dpyinfo->bitmaps[id - 1].width = width;
352 strcpy (dpyinfo->bitmaps[id - 1].file, SSDATA (file));
353 351
354 return id; 352 return id;
355#endif /* HAVE_X_WINDOWS */ 353#endif /* HAVE_X_WINDOWS */