This fix a regression in revision 687097d4bc because of the wrong order of moving the sampled rect and scaling.
687097d4bc