[PATCH] winex11.drv: Fix drawing dashed lines.

Dmitry Timoshkov dmitry at baikal.ru
Thu Jul 5 03:09:07 CDT 2018


Alexandre Julliard <julliard at winehq.org> wrote:

> > For some reason XDrawLine() and XDrawRectangle() draw only very first segment
> > of a dashed line if line_width is set to 0.
> >
> > I couldn't find an explanation in the XLib programming guide.
> >
> > In order to see the problem add "X11 Driver"/"ClientSideGraphics"="N" to
> > the registry, then the bug could be noticed as a missing focus regtangle
> > on focused buttons, missing dashed lines between nodes in regedit, etc.
> 
> That's not the normal X11 behavior, we've been using these dashed lines
> for years without issue. It looks like a bug in your graphics driver.

Hmm, probably you are right, I don't see this behaviour on another machine
with Linux in a VM. 

For the reference this is with xorg-dri-nouveau-17.3.9 and kernel-4.14.52.

Could we add the patch as a workaround? Is there a problem with making sure
that line_width is not 0?

-- 
Dmitry.



More information about the wine-devel mailing list