summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mnt.el
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2019-03-26 14:42:10 +0900
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2019-03-26 14:42:10 +0900
commit75b7b2cf7cfd39dd595fa27ddeef859ed85861bb (patch)
tree8f37cd68d617760fd93b2f266ed9b3e661daa178 /lisp/emacs-lisp/lisp-mnt.el
parent568af1e5822086f2457b6e98a22624b8138aa72f (diff)
downloademacs-75b7b2cf7cfd39dd595fa27ddeef859ed85861bb.tar.gz
emacs-75b7b2cf7cfd39dd595fa27ddeef859ed85861bb.tar.bz2
emacs-75b7b2cf7cfd39dd595fa27ddeef859ed85861bb.zip
Simplify cairo image surface creation and destruction
* src/dispextern.h (struct image) [USE_CAIRO]: Remove member cr_data2. * src/image.c (set_cairo_image_surface): New function split from original create_cairo_image_surface. Call cairo_surface_mark_dirty. (create_cairo_image_surface): Just create image surface and return it. (x_clear_image): Don't free cr_data2. (xpm_load, pbm_load, png_load_body, jpeg_load_body, tiff_load) (gif_load, imagemagick_load_image, svg_load_image) [USE_CAIRO]: Use new create_cairo_image_surface and cairo_image_surface_get_data instead of xmalloc. Use set_cairo_image_surface instead of old create_cairo_image_surface. (pbm_load) [USE_CAIRO]: Call cairo_surface_destroy for surface instead of xfree for data. (gif_load) [USE_CAIRO]: Multiply y-coordinate value by width instead of subimg_width.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions