]> git.eshelyaron.com Git - emacs.git/commit
Initial version of native image API support for MS-Windows
authorJuan José García-Ripoll <juanjose.garciaripoll@gmail.com>
Mon, 13 Apr 2020 10:04:39 +0000 (12:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 14 Apr 2020 06:52:55 +0000 (09:52 +0300)
commitdf254a7445a86dc25d133f2d79be8096190a8b96
treec6094f663793c61f4243483c0c6d310205005a83
parent7a9fb5d55c9bf612a38348d59e769ee915175e28
Initial version of native image API support for MS-Windows

* src/w32image.c: New file.
* src/w32term.h: Add prototypes of 'w32_load_image',
'w32_gdiplus_startup', 'w32_gdiplus_shutdown', and
'w32_query_frame_background_color'.
* src/w32term.c (w32_query_frame_background_color): No longer
static.
* src/w32.c (term_ntproc) [HAVE_GDIPLUS]: Call
'w32_gdiplus_shutdown'.
* src/image.c (struct image_type) <valid_p>: Accept an additional
argument, the image type.  All implementations changed.
(init_native_image_functions, native_image_p, native_image_load)
[HAVE_NATIVE_IMAGE_API]: New methods for "native image type".
(initialize_image_type) [HAVE_NATIVE_IMAGE_API]: Call
'init_native_image_functions'.
(image_types) [HAVE_NATIVE_IMAGE_API]: Add settings for native
image API.
(lookup_image_type) [HAVE_NATIVE_IMAGE_API]: Initialize native
functions if needed.

* lisp/term/w32-win.el (dynamic-library-alist): Add gdiplus and
shlwapi.

* etc/NEWS: Announce the new feature.

* configure.ac (native-image-api): New option, OFF by default.
(HAVE_NATIVE_IMAGE_API): If native-image-api is selected, add
w32image.o to W32_OBJ.
configure.ac
etc/NEWS
lisp/term/w32-win.el
src/image.c
src/w32.c
src/w32image.c [new file with mode: 0644]
src/w32term.c
src/w32term.h