This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit d1d95fb2b11d49b69e7d47a1cb39a348725ec763
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat May 6 20:51:06 2023 +0200
imlib2_view: Avoid potential use of uninitialized data
---
src/bin/imlib2_view.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index a36151f..1ae7845 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -103,6 +103,7 @@ bg_im_init(int w, int h)
imlib_context_set_color(144, 144, 144, 255);
else
imlib_context_set_color(100, 100, 100, 255);
+ imlib_context_set_blend(0);
imlib_image_fill_rectangle(x, y, opt_cbfs, opt_cbfs);
onoff++;
if (_onoff_ == 2)
@@ -192,6 +193,7 @@ anim_init(int w, int h)
imlib_context_set_image(fg_im);
imlib_image_set_has_alpha(1);
imlib_context_set_color(0, 0, 0, 0);
+ imlib_context_set_blend(0);
imlib_image_fill_rectangle(0, 0, w, h);
/* Keep a clean copy of background image around for clearing parts */
@@ -244,6 +246,7 @@ anim_update(Imlib_Image im, const rect_t * r_up, const rect_t * r_out,
Dprintf(" Clear %d,%d %dx%d\n",
r_prev.x, r_prev.y, r_prev.w, r_prev.h);
imlib_context_set_color(0, 0, 0, 0);
+ imlib_context_set_blend(0);
imlib_image_fill_rectangle(r_prev.x, r_prev.y, r_prev.w, r_prev.h);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.