The library uses native hardware line drawing support (if available in the device) only if: Line width is 1. No line pattern is enabled.
https://learn.microsoft.com/en-us/windows/win32/direct3d9/line-drawing-support-in-d3dx