Dmitry Timoshkov dmitry@baikal.ru writes:
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.