subpixel precision done almost right