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 f0a81d9d59b9fbd646d3ea81972ec95a5f817266
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sun Jan 21 13:09:19 2024 +0100
imlib2_view: Minor cleanup
---
src/bin/imlib2_view.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index 35fd677..902a2b2 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -95,6 +95,8 @@ bg_im_init(int w, int h)
bg_im = imlib_create_image(w, h);
imlib_context_set_image(bg_im);
+ imlib_context_set_blend(0);
+
for (y = 0; y < h; y += opt_cbfs)
{
_onoff_ = (y / opt_cbfs) & 0x1;
@@ -104,11 +106,8 @@ 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)
- _onoff_ = 0;
+ onoff ^= 0x1;
}
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.