]> git.eshelyaron.com Git - emacs.git/commit
Fix image scaling with masks (bug#38109)
authorAlan Third <alan@idiocy.org>
Sat, 9 Nov 2019 17:04:25 +0000 (17:04 +0000)
committerAlan Third <alan@idiocy.org>
Fri, 29 Nov 2019 21:22:26 +0000 (21:22 +0000)
commit3e9c82d99902230812c10e8d464f4908a8a6ea42
treec5698e1d0c7158a63af8572148d0592731dfe209
parentb1a69505843c593a3a757a614dea16e2a7185579
Fix image scaling with masks (bug#38109)

* src/image.c (lookup_image): Move call to image_set_transform after
postprocess_image.
(image_create_x_image_and_pixmap_1): Use new function.
(image_set_transform): Apply the transform to the mask too.
(x_create_xrender_picture): New function.
(Create_Pixmap_From_Bitmap_Data):
(xpm_load): Use new function.
* src/xterm.c (x_composite_image): Use PictOpOver when there is a mask
so the transparency is honoured.
(x_draw_image_foreground_1): Use x_composite_image.
src/image.c
src/xterm.c