On 12/8/25 2:39 PM, Kim Woelders wrote:
On 2025-12-02 23:47, Brian Lindholm wrote:
As a follow-up to my previous bug report, I'm also sending in a minor
enhancement to the _DrawGradient() function in src/lib/grad.c. The
logic in today's code results in significant portions of the screen
being filled in with a uniform color as opposed to a gradient when an
angle is used. The attached patch "stretches" the gradient from
corner to corner, providing a gradient across the entire screen.
[And like my previous patch, a some casts to (unsigned long int) were
required to avoid integer overflow issues.]
Hello Brian,
I have pushed a patch, basically doing as suggested, but dealing with
the i variable range limiting a bit differently (+ uint64_t for 32 bit
arches).
Thanks :)
/Kim
Hi Kim,
I just tried your new patch today, and it worked flawlessly for
every angle I tried. And it's definitely cleaner than the patch I
originally proposed.
Thank you for both considering my patch and for making the final fix
even better.
Brian
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel