correctly calculate texture coordinates when erasing at the end of a lon...

...g line

fixes #508