I knew I had seen this before!
This could mean my wavy lines might NOT be because of the code, but something else, something related to how WinTab32 handles speed... I could try Windows Ink instead, no rush though, I have to make sure to investigate and exhaust all possbilities before rewriting the brush engine