One needs to multiply the size by dpr, too, otherwise it's cut off. (cherry picked from commit 9ccb1690)