Re: XDrawRectangle workaround

[email protected] Wed, 03 May 2023 14:04:27 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
On 2023-05-03 12:08, Sander Jansen wrote:
> I noticed some missing pixels when running FOX under wayland/GNOME:
> Looks like there may be a driver issue as the FLTK project reported
> the same thing.
> 
> https://github.com/fltk/fltk/issues/156
> https://gitlab.freedesktop.org/xorg/xserver/-/issues/1221
> 
> This workaround makes quality pixels again:
> https://github.com/gogglesmm/gogglesmm/commit/7ed5be92dec805765304f4b05f02fe46
> _______________________________________________
> Foxgui-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/foxgui-users

We may need to do something different than your fix.

Because if user has changed line width, we'd be resetting it to
1 for the rectangle.

Maybe just initialize linewidth to 1 when GC is created?