diff options
author | Eli Zaretskii <eliz@gnu.org> | 2020-04-25 16:37:46 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-04-25 16:37:46 +0300 |
commit | f7748ad682abca5968ce24ed488ba56d2e48ef8a (patch) | |
tree | e5528510637c6d88e0004d66c1120f088620c013 /test/lisp/misc-tests.el | |
parent | 2a3a0a843f66db6f693e084b2fbd40eeda70afbc (diff) | |
download | emacs-f7748ad682abca5968ce24ed488ba56d2e48ef8a.tar.gz emacs-f7748ad682abca5968ce24ed488ba56d2e48ef8a.tar.bz2 emacs-f7748ad682abca5968ce24ed488ba56d2e48ef8a.zip |
Fix GDI+ image loading by file name
Without a call to image_find_image, we can get a file name that
is relative to data-directory/images/, or a file name that
starts with "~/", in which case w32_load_image would fail.
* src/image.c (native_image_load): Call image_find_image_file to
resolve and encode the image file name.
* src/w32image.c (w32_load_image): No need to encode the file
name, as it's already encoded by native_image_load.
Diffstat (limited to 'test/lisp/misc-tests.el')
0 files changed, 0 insertions, 0 deletions