summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-11 07:46:33 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 21:55:31 +0200
commitc7ca547b55e98914264351502e581fe6ae17ae15 (patch)
tree16b55f8fb6adde580a39b9c2f9f2a1ca8a3a18c2 /image.c
parentba0d87fadf4bb292d7baadf9f01843da354c4a43 (diff)
downloadnsxiv-c7ca547b55e98914264351502e581fe6ae17ae15.tar.zst
Fix in tabbed with alpha patch (#3)
* Fix in tabbed with alpha patch Co-authored-by: Jared Forrest <jared_forrest@mailbox.org>
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/image.c b/image.c
index fa10ab9..2c6852f 100644
--- a/image.c
+++ b/image.c
@@ -482,7 +482,7 @@ void img_render(img_t *img)
if ((bg = imlib_create_image(dw, dh)) == NULL)
error(EXIT_FAILURE, ENOMEM, NULL);
imlib_context_set_image(bg);
- imlib_image_set_has_alpha(0);
+ imlib_image_set_has_alpha(1);
if (img->alpha) {
int i, c, r;
@@ -510,6 +510,7 @@ void img_render(img_t *img)
imlib_free_image();
imlib_context_set_color_modifier(img->cmod);
} else {
+ imlib_image_set_has_alpha(1);
imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh);
}
img->dirty = false;