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 b8f22a7ccb41e067b5fea823385308dd0c946e5e
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Sep 21 19:22:15 2024 +0200
test_grab: Work around linewidth=0 bug
It seems that certain drivers (modesetting+glamor on intel?) have a bug
that causes incorrect rendering of rectangles with zero width lines
(missing lower right pixel).
Changing the linewidth to 1 works fine.
Setting IMLIB2_TEST_LW0_BUG sets the line width to 0 (i.e. old behavior)
in order to expose the problem.
---
test/test_grab.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/test/test_grab.cpp b/test/test_grab.cpp
index a1671e6..588430b 100644
--- a/test/test_grab.cpp
+++ b/test/test_grab.cpp
@@ -135,7 +135,11 @@ _pmap_mk_fill_solid(int w, int h, unsigned int col_bg, unsigned int col_fg)
gcv.foreground = pix_bg;
gcv.graphics_exposures = False;
- gc = XCreateGC(xd.dpy, pmap, GCForeground | GCGraphicsExposures, &gcv);
+ gcv.line_width = 1;
+ if (getenv("IMLIB2_TEST_LW0_BUG"))
+ gcv.line_width = 0;
+ gc = XCreateGC(xd.dpy, pmap,
+ GCForeground | GCGraphicsExposures | GCLineWidth, &gcv);
XFillRectangle(xd.dpy, pmap, gc, 0, 0, w, h);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.