Clamp vpX0/vpY0 to zero when negative value retured
Merge pull request #2938 from raven02/patch-1

Clamp vpX0/vpY0 to zero when negative value retured